From: Gordon Hecker Date: Wed, 28 Oct 2009 12:56:49 +0000 (+0100) Subject: Fix call to git checkout to be non-ambiguous. This leads to a more clear X-Git-Tag: e2factory-2.3.2rc1~29 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=7a5d1ed17bd502f37ed5cff82ddf405aba18992f;p=e2factory.git Fix call to git checkout to be non-ambiguous. This leads to a more clear error message from git if the ref is misconfiugured. Signed-off-by: Gordon Hecker --- diff --git a/global/e2-install-e2.lua.in b/global/e2-install-e2.lua.in index b7f2ab9..f6e1aec 100755 --- a/global/e2-install-e2.lua.in +++ b/global/e2-install-e2.lua.in @@ -150,7 +150,8 @@ end e2lib.chdir(destdir) -- checkout ref -rc, re = e2lib.git(nil, "checkout", ref) +local args = string.format("%s --", ref) +rc, re = e2lib.git(nil, "checkout", args) if not rc then e2lib.abort(e:cat(re)) end