Skip to content

Commit

Permalink
Backed out changeset a8d1b2a81511 (bug 1853184) for causing python vc…
Browse files Browse the repository at this point in the history
…s failures CLOSED TREE
  • Loading branch information
Sandor Molnar committed Sep 18, 2023
1 parent 1fab583 commit fd89296
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/mozversioncontrol/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"""
echo "foo" > foo
echo "bar" > bar
git init --initial-branch main
git init
git config user.name "Testing McTesterson"
git config user.email "<[email protected]>"
git add *
Expand All @@ -37,7 +37,7 @@
"""
git remote add upstream ../remoterepo
git fetch upstream
git branch -u upstream/main
git branch -u upstream/master
""",
],
}
Expand Down
2 changes: 1 addition & 1 deletion python/mozversioncontrol/test/test_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_branch(repo):
pytest.xfail("`git branch --show-current` not implemented yet")

if vcs.name == "git":
assert vcs.branch == "main"
assert vcs.branch == "master"
else:
assert vcs.branch is None

Expand Down
2 changes: 1 addition & 1 deletion python/mozversioncontrol/test/test_workdir_outgoing.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_workdir_outgoing(repo):
vcs = get_repository_object(repo.dir)
assert vcs.path == str(repo.dir)

remote_path = "../remoterepo" if repo.vcs == "hg" else "upstream/main"
remote_path = "../remoterepo" if repo.vcs == "hg" else "upstream/master"

# Mutate files.
repo.execute_next_step()
Expand Down

0 comments on commit fd89296

Please sign in to comment.