Add desktop store and entry creation workflows
This commit is contained in:
1 parent
75d4ead3d8
commit
bb650c2b5c
8 files changed
+1330
-57
No files matched your search
@@ -938,8 +938,11 @@ impl GitRepository {
|
||||
path: &Path,
|
||||
identity: GitIdentity,
|
||||
) -> Result<Self, GitError> {
|
||||
let relative = validate_relative(path)?;
|
||||
let mut candidate = store.root_path().join(relative);
|
||||
let mut candidate = if path.as_os_str().is_empty() {
|
||||
store.root_path().to_owned()
|
||||
} else {
|
||||
store.root_path().join(validate_relative(path)?)
|
||||
};
|
||||
if !candidate.is_dir() {
|
||||
candidate.pop();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user