Skip to content

Commit

Permalink
ensure to remove module directory if ignore-unreachable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
xorpaul committed Jun 29, 2016
1 parent b631ce7 commit 784f2d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func syncToModuleDir(srcDir string, targetDir string, tree string, allowFail boo
needToSync := true
if er.returnCode != 0 && allowFail {
Infof("Failed to populate module " + targetDir + " but ignore-unreachable is set. Continuing...")
purgeDir(targetDir, "syncToModuleDir, because ignore-unreachable is set for this module")
return
}

Expand Down

0 comments on commit 784f2d6

Please sign in to comment.