mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
fix t5600-clone-fail-cleanup.sh on windows
In windows you cannot remove current or opened directory, an opened file, a running program, a loaded library, etc... [jc: signoffs? With a minor quoting fix.] Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
6dc78e696b
commit
edd3ebfe27
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ dir="$2"
|
|||
[ -e "$dir" ] && echo "$dir already exists." && usage
|
||||
mkdir -p "$dir" &&
|
||||
D=$(cd "$dir" && pwd) &&
|
||||
trap 'err=$?; rm -r $D; exit $err' exit
|
||||
trap 'err=$?; cd ..; rm -r "$D"; exit $err' exit
|
||||
case "$bare" in
|
||||
yes) GIT_DIR="$D" ;;
|
||||
*) GIT_DIR="$D/.git" ;;
|
||||
|
|
Loading…
Reference in a new issue