mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
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:
commit
5f63f2265e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user