Kaydet (Commit) a7069c2a authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

git rev-parse argument are not files, no need to try to find abs-path

This was causing some error message on Windows
üst 2e76553c
......@@ -220,14 +220,19 @@ while shift ; do
exit 1
}
fi
# make the paths absolute
FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM")
if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then
# it is probably not a file, but a tag name, or something
if [ "$COMMAND" == "rev-parse" ] ; then
# this is not a file
FILES[$FILESNUM]="$PARAM"
fi
FILESNUM=$(($FILESNUM+1))
FILESNUM=$(($FILESNUM+1))
else
# make the paths absolute
FILES[$FILESNUM]=$(perl -e 'use Cwd "abs_path"; print abs_path(shift);' "$PARAM")
if [ -z "${FILES[$FILESNUM]}" -o ! -e "${FILES[$FILESNUM]}" ] ; then
# it is probably not a file, but a tag name, or something
FILES[$FILESNUM]="$PARAM"
fi
FILESNUM=$(($FILESNUM+1))
fi
fi
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment