diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-05-25 02:29:22 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-28 14:59:19 (GMT) |
commit | 5f5e92fb7954c0bd258563541fed394bc5f88544 (patch) | |
tree | 6b567d23cb3a669b19920b1236fba7f31807a723 /contrib/remote-helpers/test-hg-hg-git.sh | |
parent | 531594e5aad738fa46cfad417bcef0fbd1520fbd (diff) | |
download | git-5f5e92fb7954c0bd258563541fed394bc5f88544.zip git-5f5e92fb7954c0bd258563541fed394bc5f88544.tar.gz git-5f5e92fb7954c0bd258563541fed394bc5f88544.tar.bz2 |
remote-helpers: test: simplify remote URLs
No need to specify $PWD any more.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers/test-hg-hg-git.sh')
-rwxr-xr-x | contrib/remote-helpers/test-hg-hg-git.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh index 041041d..c2e7316 100755 --- a/contrib/remote-helpers/test-hg-hg-git.sh +++ b/contrib/remote-helpers/test-hg-hg-git.sh @@ -27,7 +27,7 @@ fi # clone to a git repo with git git_clone_git () { - git clone -q "hg::$PWD/$1" $2 + git clone -q "hg::$1" $2 } # clone to an hg repo with git @@ -36,7 +36,7 @@ hg_clone_git () { hg init $2 && hg -R $2 bookmark -i master && cd $1 && - git push -q "hg::$PWD/../$2" 'refs/tags/*:refs/tags/*' 'refs/heads/*:refs/heads/*' + git push -q "hg::../$2" 'refs/tags/*:refs/tags/*' 'refs/heads/*:refs/heads/*' ) && (cd $2 && hg -q update) @@ -63,7 +63,7 @@ hg_push_git () { cd $2 old=$(git symbolic-ref --short HEAD) git checkout -q -b tmp && - git fetch -q "hg::$PWD/../$1" 'refs/tags/*:refs/tags/*' 'refs/heads/*:refs/heads/*' && + git fetch -q "hg::../$1" 'refs/tags/*:refs/tags/*' 'refs/heads/*:refs/heads/*' && git checkout -q $old && git branch -q -D tmp 2> /dev/null || true ) |