After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624461 - Prompt before filing a bug that looks like it already is filed
Prompt before filing a bug that looks like it already is filed
Status: RESOLVED FIXED
Product: git-bz
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: git-bz-maint
git-bz-maint
Depends on:
Blocks:
 
 
Reported: 2010-07-15 14:26 UTC by Owen Taylor
Modified: 2011-09-12 20:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Catch trying to refile an already filed bug (1.18 KB, patch)
2011-09-12 20:03 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2010-07-15 14:26:43 UTC
At least twice I've done 'git bz file' rather than 'git bz attach' for a fix for an existing bug where I already put the bug URL into the comment.

If the comment already seems to have a bug #, probably makes sense for git bz file to prompt before filing a new bug. (Shouldn't refuse to file it, because sometimes you do want the commit to have two bug numbers; for the same bug in two modules, say, or upstream and downstream.)
Comment 1 Owen Taylor 2011-09-12 20:03:49 UTC
Created attachment 196301 [details] [review]
Catch trying to refile an already filed bug

If 'git bz file' is used with a commit message that contains a
bug reference, prompt before filing again.
Comment 2 Owen Taylor 2011-09-12 20:04:05 UTC
Attachment 196301 [details] pushed as 4fd0cc4 - Catch trying to refile an already filed bug