Merge pull request #2497 from noffle/init_check

Makes repo existance check more sensitive.
This commit is contained in:
Jeromy Johnson 2016-04-12 13:00:27 -07:00
commit ca50f0d8bf

View File

@ -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)
}