Comments (7)
I still hit this regularly. Newest occurrence:
$ git bz apply 1209559
Your bugzilla username is not specified in your git config.
Set it by running:
git config --global bz.username <your username>
No bugzilla API key is specified in your git config. This is the
preferred means of authentication, and other methods may break at
any time. An API key can be obtained here:
https://bugzilla.mozilla.org/userprefs.cgi?tab=apikey
Once obtained, set the API key by running:
git config --global bz.apikey <your bugzilla API key>
Debug: searching for Bugzilla cookies in Firefox profile
Bug 1209559 - Figure out why opening a toolbox on certain workers works only once.
When detaching from a WorkerClient, unregister its ThreadClient.
Apply? [yn] y
Patch format detection failed.
Patch left in /tmp/When-detaching-from-a-WorkerClient-unregister-its--uMUllz.patch
The patch format is a straight-up patch, so its format should be too hard to detect.
from moz-git-tools.
I can reproduce that error. It seems to be an error from an actual git command. I'll try to take a look at how we are actually applying these patches.
from moz-git-tools.
Thanks @amccreight !
from moz-git-tools.
The issue is that git bz apply
actually uses git am
to apply the patch, which expects a nicely formatted patch, but the attachment in bug 1209559 just a raw diff. Probably the best solution here is to change git bz apply
to use git apply
, and add a new git bz am
command that uses git am
. That will make the behavior less surprising, though it may cause confusion for existing users of git bz apply
.
from moz-git-tools.
Oh, and this should actually be filed against git-bz-moz. I'll file a new issue there.
from moz-git-tools.
Good idea! I've never really used git am
and don't know what benefits it has over git apply
, but I've had to do the occasional git am --abort
when git bz
failed.
Thanks for forwarding the issue!
from moz-git-tools.
git am does things like set the commit message and author based on the patch info. git apply just modifies the files. In your particular case, the issue is that it was a simple diff without any of the extra info, which git am apparently refuses to deal with.
from moz-git-tools.
Related Issues (20)
- Register git commands in git HOT 1
- `git push-to-try` complains about try not being local? HOT 4
- Should git-patch-to-hg-patch zap "[PATCH] " prefix? HOT 11
- `[PATCH]` prefix in commit message not removed with git-patch-to-hg-patch HOT 3
- Incorrect format HOT 1
- Make upstream-branch optional HOT 3
- Real example for git-push-to-try HOT 15
- git-push-to-try invokes git merge-base incorrectly HOT 4
- Add a command line option to indicate review should be set by default HOT 1
- git-patch-to-hg-patch should handle quoted-printable Subject lines HOT 6
- push-to-hg should actually push to hg if -t is supplied
- push-to-try complains about merge bases even when I specify a revision range
- Clarify what is PATH_TO_HG_REPO? HOT 1
- Add an option for push-to-try to open the link in a browser HOT 1
- Tag a release? HOT 2
- git-push-to-hg msys issues
- Tagged release does not include cached version of submodule HOT 2
- CODE_OF_CONDUCT.md file missing
- Migrate to Python 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moz-git-tools.