]> git.e2factory.org Git - e2factory.git/commitdiff
Fix call to git checkout to be non-ambiguous. This leads to a more clear
authorGordon Hecker <gh@emlix.com>
Wed, 28 Oct 2009 12:56:49 +0000 (13:56 +0100)
committerGordon Hecker <gh@emlix.com>
Wed, 28 Oct 2009 12:58:54 +0000 (13:58 +0100)
error message from git if the ref is misconfiugured.

Signed-off-by: Gordon Hecker <gh@emlix.com>
global/e2-install-e2.lua.in

index b7f2ab92cd6dbfe6b839cc54e6e0316506cafeb7..f6e1aec658d18f8e004d5e9fdcc31896226b5141 100755 (executable)
@@ -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