git-fetch: make it work from within a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
02c9e93547
commit
4da9028578
@ -2,7 +2,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
USAGE='<fetch-options> <repository> <refspec>...'
|
USAGE='<fetch-options> <repository> <refspec>...'
|
||||||
|
SUBDIRECTORY_OK=Yes
|
||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
|
TOP=$(git-rev-parse --show-cdup)
|
||||||
|
if test ! -z "$TOP"
|
||||||
|
then
|
||||||
|
cd "$TOP"
|
||||||
|
fi
|
||||||
. git-parse-remote
|
. git-parse-remote
|
||||||
_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
|
_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"
|
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
|
||||||
|
Loading…
Reference in New Issue
Block a user