diff --git a/git_pull_all.nim b/git_pull_all.nim index f663715..5a13b19 100644 --- a/git_pull_all.nim +++ b/git_pull_all.nim @@ -68,7 +68,7 @@ Options: -e --log-err Log error output to """ - let args = docopt(doc, version = "git_pull_all 0.2.0") + let args = docopt(doc, version = "git_pull_all 0.2.1") let rootDirs: seq[string] = if args[""]: args[""].mapIt(it) @@ -135,7 +135,8 @@ Options: else: # Not clean? Try to stash the changes. var stashed = false - if cmdOutput.outBuf.join("\n").find("working tree clean") < 0: + if cmdOutput.outBuf.join("\n").find("working tree clean") < 0 and + cmdOutput.outBuf.join("\n").find("working directory clean") < 0: cmdOutput.clear() if not git(repoDir, ["stash", "save"]): failRepo("error trying to stash uncommitted changes") diff --git a/git_pull_all.nimble b/git_pull_all.nimble index 50afbc9..45b8a62 100644 --- a/git_pull_all.nimble +++ b/git_pull_all.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.0" +version = "0.2.1" author = "Jonathan Bernard" description = "Small CLI utility to pull multiple git repos." license = "MIT"