Merge pull request #8179 from cachedout/#8163

Change the check for git rev-parse to fail if the SHA is not found. Refs...
This commit is contained in:
Colton Myers 2013-10-30 11:10:29 -07:00
commit 5f63f2265e

View File

@ -212,7 +212,7 @@ def latest(name,
identity=identity)
elif rev:
cmd = "git rev-parse " + rev
cmd = "git rev-parse " + rev + '^{commit}'
retcode = __salt__['cmd.retcode'](cmd,
cwd=target,
runas=user)