diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-06-01 23:43:30 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-01 23:43:30 -0700 |
commit | 0cc01c9657e82cc3907377d937a1eb869dd4bb5c (patch) | |
tree | 90ac1d3aecb9581a66a69d917e0e6461df6720a9 /t | |
parent | d8ad63aff0c494898f95aefb12fef25514ba7413 (diff) | |
parent | 7ad2458fadc6cafe25e23affd6cc46cd6494a42d (diff) | |
download | git-0cc01c9657e82cc3907377d937a1eb869dd4bb5c.tar.gz git-0cc01c9657e82cc3907377d937a1eb869dd4bb5c.tar.xz |
Merge branch 'sp/remote'
* sp/remote:
Make "git-remote rm" delete refs acccording to fetch specs
Make "git-remote prune" delete refs according to fetch specs
Remove unused remote_prefix member in builtin-remote
Diffstat (limited to 't')
-rwxr-xr-x | t/t5505-remote.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index a37b6f521..0d7ed1f99 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -164,6 +164,24 @@ test_expect_success 'add --mirror && prune' ' git rev-parse --verify refs/heads/side) ' +test_expect_success 'add alt && prune' ' + (mkdir alttst && + cd alttst && + git init && + git remote add -f origin ../one && + git config remote.alt.url ../one && + git config remote.alt.fetch "+refs/heads/*:refs/remotes/origin/*") && + (cd one && + git branch -m side side2) && + (cd alttst && + git rev-parse --verify refs/remotes/origin/side && + ! git rev-parse --verify refs/remotes/origin/side2 && + git fetch alt && + git remote prune alt && + ! git rev-parse --verify refs/remotes/origin/side && + git rev-parse --verify refs/remotes/origin/side2) +' + cat > one/expect << EOF apis/master apis/side |