Bug 259325 - "Commit to security/vuxml/vuln.xml first"
Summary: "Commit to security/vuxml/vuln.xml first"
Status: Closed Unable to Reproduce
Alias: None
Product: Services
Classification: Unclassified
Component: Git Integration (show other bugs)
Version: unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-20 18:18 UTC by Mikhail Teterin
Modified: 2021-11-24 12:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2021-10-20 18:18:10 UTC
This is my first attempt to upgrade a port (net-mgmt/adcli) since the git-conversion, so I may well be doing something wrong. Trying to push my change after committing it locally, I get:

remote: 
remote: ================================================================
remote: Commit to security/vuxml/vuln.xml first, and then other files
remote: ================================================================
remote: 
To ssh://gitrepo.FreeBSD.org/ports.git
 ! [remote rejected]       main -> main (pre-receive hook declined)
error: failed to push some refs to 'ssh://gitrepo.FreeBSD.org/ports.git'

I'm not trying to change the vuln.xml here, what's hook trying to tell me?
Comment 1 Mikhail Teterin freebsd_committer freebsd_triage 2021-10-20 18:28:52 UTC
And now, without me changing anything, the error is different:

remote: 
remote: ================================================================
remote: First line does not start with the regular
remote: category/port: subject
remote: ================================================================
remote: 
To ssh://gitrepo.FreeBSD.org/ports.git
 ! [remote rejected]       main -> main (pre-receive hook declined)

The first line of my commit-message is:

    net-mgmt/adcli: Upgrade to 0.9.1 - the old version cannot deal with newer ADs.

Why is it being rejected?
Comment 2 Ulrich Spörlein freebsd_committer freebsd_triage 2021-10-20 19:33:49 UTC
Can you please paste the output of git show?
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2021-10-20 22:58:38 UTC
This looks a bit strange, can you push your branch to somewhere else then we can check the commits in that branch are all fine?
Comment 4 Mikhail Teterin freebsd_committer freebsd_triage 2021-10-21 03:05:02 UTC
After several git-pulls and rebasing to rephrase my commit-message to start with category/port, I was informed, that my name/address are wrong.

Finally, after fixing that too, I was able to push -- what "git show" shows now is, probably, not helpful to you, is it?..

I note, that there was (at least one) commit to security/vuxml while I was struggling. Why was the hook holding me off with that message, I do not understand...