In case we have a git clone from Linux that is accessed via cygwin git the files executable status will be derived from the file content (shebang) and won't match the git repo, leading to a initially dirty tree. This can be worked around by setting "core.filemode=false", but let's try to match the cygwin permissions with the in-repo permissions so this isn't needed.
9 lines
175 B
Bash
Executable File
9 lines
175 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
GH_EXE="$( dirname ${BASH_SOURCE[0]} )/gh.exe"
|
|
|
|
if [ -t 0 -a -t 1 -a -x /usr/bin/winpty ]; then
|
|
/usr/bin/winpty $GH_EXE "$@"
|
|
else
|
|
exec $GH_EXE "$@"
|
|
fi |