Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-03-09 01:40:42 +0300
committerJunio C Hamano <gitster@pobox.com>2008-03-09 08:30:22 +0300
commit3b9dcff5df97ab642de48bc1ce781961686081aa (patch)
treea539a42e510a5edba6fba57b073219b964b1aaff /t/t5505-remote.sh
parent84521ed6f2ccfd8dfe001806f83bb28e6a8934be (diff)
builtin remote rm: remove symbolic refs, too
"git remote add" can add a symbolic ref "HEAD", and "rm" should delete it, too. Noticed by Teemu Likonen. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5505-remote.sh')
-rwxr-xr-xt/t5505-remote.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index f45ea68f63..2822a651b5 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -80,6 +80,7 @@ test_expect_success 'add another remote' '
test_expect_success 'remove remote' '
(
cd test &&
+ git symbolic-ref refs/remotes/second/HEAD refs/remotes/second/master &&
git remote rm second
)
'