Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (23 sloc) 0.593 kb
#!/bin/sh
# Windows doesn't have the 'dirname' command, so fake it
dirname() {
dir=$(echo "$@" | perl -pe 's,(.*)/[^/]+,\1,')
test "$dir" = "$1" && dir=.
echo "$dir"
}
mydir="$(dirname "$0")"
parentdir="$(dirname "$mydir")"
# Windows uses 'git-cola.pyw' instead of 'git-cola'
COLA="$parentdir"/bin/git-dag
if test -f "$COLA".pyw; then
COLA="$COLA".pyw
fi
# Find a suitable Python and use it to run cola
for python in "/c/Python27" "/c/Python26" "/c/Python25"; do
if test -d "$python"; then
PATH="$PATH":"$python"
export PATH
exec "$python/python.exe" "$COLA" "$@"
fi
done
exit 1
Jump to Line
Something went wrong with that request. Please try again.