From 2d3b152cf7b621d18f3357c3dcc4a38572f0dfff Mon Sep 17 00:00:00 2001 From: Michael Pyne Date: Sun, 25 Mar 2018 13:24:57 -0400 Subject: [PATCH] git: Don't overspecify tags on initial clone. git-clone doesn't like this value as an option to --branch/-b. Instead just leave it as a plain tag name and hope it doesn't conflict with any branch names. --- modules/ksb/Updater/Git.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ksb/Updater/Git.pm b/modules/ksb/Updater/Git.pm index 0f0fc16..458eafa 100644 --- a/modules/ksb/Updater/Git.pm +++ b/modules/ksb/Updater/Git.pm @@ -106,7 +106,6 @@ sub _clone p_chdir($module->getSourceDir()); my ($commitId, $commitType) = $self->_determinePreferredCheckoutSource($module); - $commitId = "refs/tags/$commitId" if $commitType eq 'tag'; unshift @args, '-b', $commitId; # Checkout branch right away if (0 != log_command($module, 'git-clone', ['git', 'clone', @args])) {