Update to keep up with changing language in git output.
This commit is contained in:
parent
2538b357f9
commit
c96af37eea
@ -68,7 +68,7 @@ Options:
|
||||
-e --log-err <errlog> Log error output to <errfile>
|
||||
"""
|
||||
|
||||
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["<root>"]: args["<root>"].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")
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user