summaryrefslogtreecommitdiff
path: root/git-update-agent
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-29 18:01:02 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-29 18:01:02 -0500
commitb5decf314d7219e338fc70af0991a52b1d9faef2 (patch)
tree7f6ba2c49e07bac99435aa4dc3bce95bbb3f31c3 /git-update-agent
parentf000ca24f33409c6f688d170444a6203c53204e5 (diff)
downloaddeb-git-update-agent-b5decf314d7219e338fc70af0991a52b1d9faef2.tar.xz
deb-git-update-agent-b5decf314d7219e338fc70af0991a52b1d9faef2.zip
Regression - not setting remote HEAD
Diffstat (limited to 'git-update-agent')
-rw-r--r--git-update-agent4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-update-agent b/git-update-agent
index b0c91f4..c52fdfe 100644
--- a/git-update-agent
+++ b/git-update-agent
@@ -320,6 +320,8 @@ init_repo() {
if ! git fetch --force --tags "$remote" 2>/dev/null; then
die "Could not download content from \"$remote_url\" on \"$DEFAULT_BRANCH\"."
fi
+
+ git remote set-head "$remote" --auto >/dev/null
git checkout "$DEFAULT_BRANCH"
@@ -327,7 +329,7 @@ init_repo() {
}
print_version() {
- echo "0.0.4"
+ echo "0.0.5"
}
#