Update to keep up with changing language in git output.

This commit is contained in:
Jonathan Bernard 2017-11-15 22:06:22 -06:00
parent 2538b357f9
commit c96af37eea
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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"