Skip to content

Commit

Permalink
remotes can be renamed without tinkering with .git/refs/hg/remote-name,
Browse files Browse the repository at this point in the history
closes #14

Although .git/refs/hg/old-remote-name is not renamed or deleted
automatically, it is not harmful and the user can delete it at any time,
thus

    git remote rename old-remote-name new-remote-name

behaves acceptably with no further user interaction. Update
test_pull_named_remote to reflect this.
  • Loading branch information
jedbrown committed Jan 30, 2013
1 parent cb8c0e9 commit 68ce89b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/test_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def test_pull_named_remote(git_dir, hg_repo):

sh.cd(git_repo)
sh.git.remote("rename", "the-remote", "new-remote-name")
sh.mv(".git/refs/hg/the-remote", ".git/refs/hg/new-remote-name")
sh.git.pull("new-remote-name", "master")
assert_git_count(4)
assert_git_notes(hgsha1s)
Expand Down

0 comments on commit 68ce89b

Please sign in to comment.