Unverified Commit 0caf20cb authored by boklm's avatar boklm
Browse files

git_clone_fetch: detach HEAD before fetching new commits

If we are on a branch and we don't deatch HEAD before, git will refuse
to update that branch.
parent 684bcb6a
......@@ -41,6 +41,7 @@ sub git_clone_fetch {
system('git', 'clone', $torbrowsergit, $clone_dir) == 0
|| exit_error "Error cloning $torbrowsergit";
git_cmd('git', 'checkout', '--detach', '-f');
git_cmd('git', 'fetch', 'origin', '+refs/heads/*:refs/heads/*');
my ($r) = git_cmd('git', 'remote');
git_cmd('git', 'remote', 'add', 'gecko-dev', $geckodevgit)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment