(ref string)
| 57 | } |
| 58 | |
| 59 | func (self *Git) GetCommitHash(ref string) string { |
| 60 | output, err := self.shell.runCommandWithOutput([]string{"git", "rev-parse", ref}) |
| 61 | if err != nil { |
| 62 | log.Fatalf("Could not get commit hash: %v", err) |
| 63 | } |
| 64 | return strings.TrimSpace(output) |
| 65 | } |
no test coverage detected