Skip to content

Commit 6c9f916

Browse files
committed
update
1 parent e7c1097 commit 6c9f916

File tree

1 file changed

+2
-1
lines changed
  • library/compiler-builtins/crates/josh-sync/src

1 file changed

+2
-1
lines changed

library/compiler-builtins/crates/josh-sync/src/sync.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ impl GitSync {
107107
// This should not add any new root commits. So count those before and after merging.
108108
let num_roots = || -> u32 {
109109
let out = self.read(["git", "rev-list", "HEAD", "--max-parents=0", "--count"]);
110-
out.parse::<u32>()
110+
out.trim()
111+
.parse::<u32>()
111112
.unwrap_or_else(|e| panic!("failed to parse `{out}`: {e}"))
112113
};
113114
let num_roots_before = num_roots();

0 commit comments

Comments
 (0)