Skip to content

Commit 4e07f1c

Browse files
committed
prune: Fix rebase_does_not_suggest_prune_when_no_ancestor
Parsing git's stdout needs to be tested on a fixed locale, non-english locales break this test.
1 parent 8b45ace commit 4e07f1c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/prune.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ fn rebase_suggests_prune_when_branch_is_ancestor_of_root() {
424424

425425
#[test]
426426
fn rebase_does_not_suggest_prune_when_no_ancestor() {
427+
std::env::set_var("LANG", "C");
427428
let repo_name = "rebase_does_not_suggest_prune_when_no_ancestor";
428429
let repo = setup_git_repo(repo_name);
429430
let path_to_repo = generate_path_to_repo(repo_name);

0 commit comments

Comments
 (0)