summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d6d96f8)
raw | patch | inline | side by side (parent: d6d96f8)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Sat, 12 Apr 2008 19:32:00 +0000 (15:32 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 12 Apr 2008 22:41:24 +0000 (15:41 -0700) |
Also tighten test to require it to be correct.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c | patch | blob | history | |
t/t5516-fetch-push.sh | patch | blob | history |
diff --git a/remote.c b/remote.c
index 08af7f9de124f2e06dc8edd030212ecde9c22920..369dc3398cc22206497f17cd846702783f59cf76 100644 (file)
--- a/remote.c
+++ b/remote.c
}
if (!prefixcmp(key, "url.")) {
struct rewrite *rewrite;
- name = key + 5;
+ name = key + 4;
subkey = strrchr(name, '.');
if (!subkey)
return 0;
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 793ffc6600202431193887a12981105c099d40df..6d7e7385483bda6223d8d222980bf33b2679f711 100755 (executable)
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
test_expect_success 'fetch with insteadOf' '
mk_empty &&
(
- TRASH=$(pwd) &&
+ TRASH=$(pwd)/ &&
cd testrepo &&
- git config url./$TRASH/.insteadOf trash/
+ git config url.$TRASH.insteadOf trash/
git config remote.up.url trash/. &&
git config remote.up.fetch "refs/heads/*:refs/remotes/origin/*" &&
git fetch up &&
test_expect_success 'push with insteadOf' '
mk_empty &&
- TRASH=$(pwd) &&
- git config url./$TRASH/.insteadOf trash/ &&
+ TRASH=$(pwd)/ &&
+ git config url.$TRASH.insteadOf trash/ &&
git push trash/testrepo refs/heads/master:refs/remotes/origin/master &&
(
cd testrepo &&