Commit adb54109 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make small adjustments to helper functions

parent 4448accf
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ is_subdirectory()

branch_exists()
{
	git rev-parse --verify $1 >/dev/null 2>&1
	[[ -n "$1" ]] && git rev-parse --verify $1 >/dev/null 2>&1
}


@@ -144,8 +144,7 @@ new_repo()
set_head()
(
	cd "$1"
	local HEAD="${2-master}" REPO="${GIT_DIR-.git}"
	git symbolic-ref HEAD refs/heads/$HEAD
	git symbolic-ref HEAD refs/heads/${2-master}
)

get_remote_head()