I ran into the issue that I cannot execute the following command when passing the parameters one by one:
git for-each-ref --format='%(refname)' refs/heads/
Because it tries to run this command instead: git for-each-ref '--format='%(refname)''%(refname)''' refs/heads/
Thanks for reporting this! I've removed self-baked solution for Ruby standard lib which correctly escapes arguments and makes multiple arguments work fine.
Hi,
I ran into the issue that I cannot execute the following command when passing the parameters one by one:
git for-each-ref --format='%(refname)' refs/heads/
Because it tries to run this command instead:
git for-each-ref '--format='%(refname)''%(refname)''' refs/heads/
See:
A possible workaround is to do this:
cmd.run("git for-each-ref --format='%(refname)' refs/heads/")