Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] TransportException: nothing to push

PushCommand.call() throws a TransportException if there are no refs to
push.  I'm not sure that this is correct.  For example, if I want to
push refs/foo/*, I'm probably OK with doing nothing if there don't
happen to be any such refs.  It seems to me that the response ought to
be "OK, we pushed all zero of your refs".  I recognize that this would
be an API change, so I guess I'm actually proposing adding
setAllowEmptyPush(bool) to set the option to do this.

Does this seem reasonable?



P.S. while testing some unrelated changes, I had a bunch of failures
due to flaky tests, and I wrote the following quick fix:
https://git.eclipse.org/r/#/c/93573/
Can someone take a quick look?


Back to the top