Commit 75ec24f7 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

ref-locks doesn't fail if $GIT_DIR/locks nonexistent

parent dc825a5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ inc ()
{
	local branch=$1 new=$2 namespace
	shift; shift
	cd locks
	cd locks 2>/dev/null || exit 0
	while [ "$1" ]; do
		cd $1 || break
		namespace=${namespace:+$namespace/}$1