Commit ca50f0d8 authored by Jeromy Johnson's avatar Jeromy Johnson

Merge pull request #2497 from noffle/init_check

Makes repo existance check more sensitive.
parents 6c8bebbe fa006350
......@@ -580,13 +580,5 @@ func IsInitialized(path string) bool {
// isInitializedUnsynced reports whether the repo is initialized. Caller must
// hold the packageLock.
func isInitializedUnsynced(repoPath string) bool {
if !configIsInitialized(repoPath) {
return false
}
if !util.FileExists(filepath.Join(repoPath, leveldbDirectory)) {
return false
}
return true
return configIsInitialized(repoPath)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment