Push failures drop some of git's error explanations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
turnip |
Invalid
|
Undecided
|
Unassigned |
Bug Description
"git push <local annotated tag name>:refs/
$ git push localhost:/tmp/foo refs/tags/
Authenticated with partial success.
Verification code:
Password:
Counting objects: 50, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (41/41), done.
Writing objects: 100% (50/50), 65.26 KiB | 0 bytes/s, done.
Total 50 (delta 4), reused 0 (delta 0)
error: Trying to write non-commit object 8bd94ee19a36c6e
remote: error: cannot update the ref 'refs/heads/
To localhost:/tmp/foo
! [remote rejected] 2.11-1ubuntu1 -> ubuntu/devel (failed to update ref)
error: failed to push some refs to 'localhost:
While I would like git to dtrt here, that is a git (perhaps wishlist) bug and not a bug in turnip.
However, when I do the same thing to Launchpad, I do not see the "error: Trying to write to non-commit object ..." message, making it difficult to understand what is wrong. The message I see is the same as above, except that single line "error: Trying to write..." is missing. For example:
$ git push lp:~racb/ubuntu/+source/ntp 1_4.2.6.
Counting objects: 45, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (45/45), done.
Writing objects: 100% (45/45), 37.35 KiB | 0 bytes/s, done.
Total 45 (delta 13), reused 0 (delta 0)
To git+ssh://<email address hidden>
! [remote rejected] 1_4.2.6.
error: failed to push some refs to 'git+ssh://<email address hidden>
So: expected result: "error: Trying to write..." message; actual result: all of the same text except for that line.
Changed in turnip: | |
status: | New → Invalid |
This is actually down the version of git on the server. It'll be fixed when production is upgraded to xenial.