#110 ✓ invalid
Wincent Colaiuta

GitX makes repositories unnavigable in Finder

Reported by Wincent Colaiuta | March 3rd, 2009 @ 10:03 PM

I am a command-line user myself, but on seeing high praise for GitX I thought I would take a look at it out of curiosity just to see how it looked.

I didn't "install" it as such; I just downloaded the zip, unpacked it, and double-clicked the app. I later trashed the app. (I was very impressed with the speed and the UI; it's just that I'm a command-line user when it comes to SCMs.)

I was somewhat surprised to see that by running GitX I had turned all of my Git repositories (well, all of those with a ".git" extension, generally clones of upstream projects) into unnavigable, double-clickable packages like the one shown in the screenshot that I will attach.

I understand the rationale (so that a user can double-click a repo and start viewing it in GitX), but it is a very annoying behaviour, IMO, for two reasons: firstly, it is very easy to accidentally make this happen (just by running GitX once) without intending to make the change; and secondly, once done it is somewhat difficult to undo the damage, and non-obvious how one might go about this.

Might I suggest that this behaviour be made opt-in? ie. a preference along the lines of "Open .git repositories in GitX with double-click", with a clarification underneath or in a tool tip like "All directories with a .git extension will become bundles".

Or if not made opt-in, a button or some other means in the UI should be provided to undo the damage.

For anyone stumbling on this ticket who has suffered the same fate. Here are your possible workarounds:

(Temporary workaround.) Right-click or Control-click on your repo directory in the Finder and choose "Show package contents" to look inside it.

(Permanent workaround.) Rename directory from "repo.git" to "repo". Depending on whether you have the Finder set to show extensions or not, you may have to do this from the Terminal or from the "Show information..." window.

(Permanent solution.) If, like me, you were only taking a quick look at GitX, drag it to the Trash and empty the Trash. If you are lucky, the system itself will notice and immediately undo the damage done to the LaunchServices database. If you are unlucky, or you delete the app by some other means ("rm" in the Terminal, for example), then you'll have to rebuild the LaunchServices database yourself with the "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister" tool.

Comments and changes to this ticket

  • Sharebear

    Sharebear March 5th, 2009 @ 12:37 PM

    This appears to be a duplicate of http://gitx.lighthouseapp.com/pr... (although I don't see a way of marking it as such)

    I also find this insanely annoying, NetBeans' file chooser seeme to like using the folder above my repository as starting point, making it frustrating to try and select a file in my project.

  • Pieter de Bie

    Pieter de Bie March 23rd, 2009 @ 11:59 PM

    • State changed from “new” to “invalid”

    Sharebear is right, this is a duplicate of #15

    I understand your frustration, but making this optional is not possible in Cocoa without some serious hacking (writing to your own application). I'm not willing to do that. I'd rather remove the association completely.

  • meowsqueak

    meowsqueak July 1st, 2012 @ 07:41 AM

    • Milestone order changed from “0” to “0”

    At the very least, please provide a way to uninstall the 'feature' - it makes GitX unusable for me.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

GitX is the nice-looking gitk clone for OS X

People watching this ticket

Attachments

Pages