Returns the git hash for the specified branch/tag/hash.
(path, branch)
| 266 | |
| 267 | |
| 268 | def get_git_hash(path, branch): |
| 269 | """ Returns the git hash for the specified branch/tag/hash. """ |
| 270 | cmd = "%s rev-parse %s" % (git_exe, branch) |
| 271 | result = exec_cmd(cmd, path) |
| 272 | if result['out'] != '': |
| 273 | return result['out'].strip() |
| 274 | return 'Unknown' |
| 275 | |
| 276 | |
| 277 | def get_git_date(path, branch): |
no test coverage detected