From 7a5d1ed17bd502f37ed5cff82ddf405aba18992f Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 28 Oct 2009 13:56:49 +0100 Subject: [PATCH] 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 --- global/e2-install-e2.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5