Skip to content

Commit

Permalink
git-fetch: make it work from within a subdirectory.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 14, 2006
1 parent 02c9e93 commit 4da9028
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
#

USAGE='<fetch-options> <repository> <refspec>...'
SUBDIRECTORY_OK=Yes
. git-sh-setup
TOP=$(git-rev-parse --show-cdup)
if test ! -z "$TOP"
then
cd "$TOP"
fi
. git-parse-remote
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
Expand Down

0 comments on commit 4da9028

Please sign in to comment.