summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
}
#