mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +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
|
@ -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