From: Tobias Ulmer Date: Thu, 6 Feb 2014 19:09:24 +0000 (+0100) Subject: Whoops, the -f in git checkout was missing X-Git-Tag: e2factory-2.3.15rc1~226 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=c104175ce0fd871b46096fa5f3924e5187e52b6f;p=e2factory.git Whoops, the -f in git checkout was missing Works so much better now... Signed-off-by: Tobias Ulmer --- diff --git a/plugins/git.lua b/plugins/git.lua index c1587ea..3b604cf 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -341,7 +341,7 @@ function git.prepare_source(info, sourcename, sourceset, buildpath) return e:cat(re) end - argv = generic_git.git_new_argv(gitdir, work_tree, "checkout") + argv = generic_git.git_new_argv(gitdir, work_tree, "checkout", "-f") table.insert(argv, "refs/heads/" .. src.branch) table.insert(argv, "--") @@ -364,7 +364,7 @@ function git.prepare_source(info, sourcename, sourceset, buildpath) return false, e:cat(re) end - argv = generic_git.git_new_argv(gitdir, work_tree, "checkout") + argv = generic_git.git_new_argv(gitdir, work_tree, "checkout", "-f") table.insert(argv, "refs/tags/" .. src.tag) table.insert(argv, "--")