GithubHelp home page GithubHelp logo

Comments (7)

jankeromnes avatar jankeromnes commented on September 27, 2024

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.

amccreight avatar amccreight commented on September 27, 2024

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.

jankeromnes avatar jankeromnes commented on September 27, 2024

Thanks @amccreight !

from moz-git-tools.

amccreight avatar amccreight commented on September 27, 2024

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.

amccreight avatar amccreight commented on September 27, 2024

Oh, and this should actually be filed against git-bz-moz. I'll file a new issue there.

from moz-git-tools.

jankeromnes avatar jankeromnes commented on September 27, 2024

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.

amccreight avatar amccreight commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.