Skip to content

Commit 0808f47

Browse files
committed
Change git branch command line like CPython
1 parent f391eba commit 0808f47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn git_tag() -> String {
2323
}
2424

2525
fn git_branch() -> String {
26-
git(&["rev-parse", "--abbrev-ref", "HEAD"])
26+
git(&["name-rev", "--name-only", "HEAD"])
2727
}
2828

2929
fn git(args: &[&str]) -> String {

0 commit comments

Comments
 (0)