summaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-04-18 15:43:23 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-20 11:33:40 +0200
commit1e103533a0770ef3fa73c47c0b5a9bb7a8d866cf (patch)
tree93f4564e7668933ab52fe1ebaabe8078b33ca31f /init-repository
parentc2543dc358912663285eac56b792eee9fa2a3364 (diff)
override the remote refs only for /heads/
it's possible to add more refs, which makes git refuse to update the configuration unless a value pattern to overwrite is specified. Change-Id: I326c05a8ed200339bf8f3f45032409150570538c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index 485a9a64..a0ea683e 100755
--- a/init-repository
+++ b/init-repository
@@ -516,7 +516,7 @@ sub git_add_remotes
$gerrit_repo_url .= $gerrit_repo_basename;
$self->exe('git', 'config', 'remote.gerrit.url', $gerrit_repo_url);
- $self->exe('git', 'config', 'remote.gerrit.fetch', '+refs/heads/*:refs/remotes/gerrit/*');
+ $self->exe('git', 'config', 'remote.gerrit.fetch', '+refs/heads/*:refs/remotes/gerrit/*', '/heads/');
}
return;