commit 6021786b2ce64006ab30306fe341f6997a3f58cb parent 3c83266194af0c3ecb02c448b21a0bbcdccb4b65 Author: lash <dev@holbrook.no> Date: Wed, 12 Jan 2022 22:38:39 +0000 More compatible branch detection Diffstat:
M | gitrefresh.sh | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gitrefresh.sh b/gitrefresh.sh @@ -46,7 +46,8 @@ repo_update() { # fi git fetch if [ ! -z "$_pull" ]; then - branch=`git branch --show-current` + #branch=`git branch --show-current` + branch=`git rev-parse --abbrev-ref HEAD` git pull --ff-only origin $branch fi }