summaryrefslogtreecommitdiff
path: root/t/t5529-push-errors.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-07-08 05:08:54 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-07-08 09:47:28 -0700
commit3d75bba28d8665ec43f1faffce38d5817c77ebe8 (patch)
treea8b87326926d2ab316b83a77d35f6a521c76c33c /t/t5529-push-errors.sh
parentam: ignore return value of write_file() (diff)
downloadtgif-3d75bba28d8665ec43f1faffce38d5817c77ebe8.tar.xz
branch: use non-gentle write_file for branch description
We use write_file_gently() to do this job currently. However, if we see an error, we simply complain via error_errno() and then end up exiting with an error code. By switching to the non-gentle form, the function will die for us, with a better error. It is more specific about which syscall caused the error, and that mentions the actual filename we're trying to write. Our exit code for the error case does switch from "1" to "128", but that's OK; it wasn't a meaningful documented code (and in fact it was odd that it was a different exit code than most other error conditions). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5529-push-errors.sh')
0 files changed, 0 insertions, 0 deletions