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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)