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

Replace Bash subshell with POSIX subshell in .shell/funcs

parent 488f7a2f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -65,12 +65,12 @@ get_shell()

update_worktree()
{
	local upstream=$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
	local upstream=`git rev-parse --abbrev-ref --symbolic-full-name @{u}`
	if [ -z "$upstream" ]; then
		return 0
	fi
	local stash=$(git stash create)
	local original=$(git rev-parse HEAD)
	local stash=`git stash create`
	local original=`git rev-parse HEAD`
	git reset --hard HEAD
	git fetch origin
	test -n "$stash" && git stash apply $stash