Skip to content

Commit

Permalink
Use -c to specify the default branch name.
Browse files Browse the repository at this point in the history
Partial revert of 44ffa2f.
  • Loading branch information
ayosec committed Oct 6, 2021
1 parent 42008fb commit 668e738
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/summarizer/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn collect_dir_data() {
let mut git = Command::new("git");
git.current_dir(root.path())
.stdout(Stdio::null())
.args(["-c", "init.defaultBranch=x"])
.args(["-c", "user.name=ab"])
.args(["-c", "user.email=a@b"]);

Expand All @@ -100,7 +101,7 @@ fn collect_dir_data() {
};
}

run_git!("init -b x");
run_git!("init");
run_git!("add .");
run_git!("commit -m x");

Expand Down
2 changes: 1 addition & 1 deletion src/tests/ui/collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fallocate -l 140K ddd/dd/file2
seq 20 > ccccc/file3
seq 30 > file4

git init -b x 1>&2
git init 1>&2
git add .
git -c user.email=x -c user.name=x commit -m X 1>&2

Expand Down
2 changes: 1 addition & 1 deletion src/tests/ui/styles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ touch N{1..20}
mkdir dir0 dir1
fallocate -l100 dir0/x

git init -b x 1>&2
git init 1>&2
seq 10 > X
git add X
git -c user.email=x -c user.name=x commit -m X 1>&2
Expand Down

0 comments on commit 668e738

Please sign in to comment.