Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
doctree/git: correct rev-parse command
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Jun 1, 2022
1 parent bdf57ba commit 406c2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctree/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func RevParse(dir string, abbrefRef bool, rev string) (string, error) {
if abbrefRef {
cmd = exec.Command("git", "rev-parse", "--abbrev-ref", rev)
} else {
cmd = exec.Command("git", "rev-parse", "--get", rev)
cmd = exec.Command("git", "rev-parse", rev)
}
absDir, err := filepath.Abs(dir)
if err != nil {
Expand Down

0 comments on commit 406c2f7

Please sign in to comment.