A thought on how to fix this: I could implement a git_push function which wraps the shell call, and allows for particular (partial) refspecs to be optional via its arguments. Then it could do the "x in r.references" test. The main push calls could use this function instead, and the function could be tested easily then.
A thought on how to fix this: I could implement a git_push function which wraps the shell call, and allows for particular (partial) refspecs to be optional via its arguments. Then it could do the "x in r.references" test. The main push calls could use this function instead, and the function could be tested easily then.