Giter Site home page Giter Site logo

Comments (34)

snoepkast avatar snoepkast commented on August 10, 2024 6

Found this issue via Google. So will post what fixed it for me:

  1. brew uninstall git
  2. brew install git --without-completions
  3. Follow the instructions on how to use it as a plugin, doing a git clone because the one from the oh-my-zsh plugins directory didn't work for me

So now I have it working with the following versions:

  • Mac OS 10.12.5
  • zsh 5.3.1 (x86_64-apple-darwin16.6.0) (installed via brew)
  • git version 2.13.3 (installed via brew)

from git-flow-completion.

shelldandy avatar shelldandy commented on August 10, 2024 5

Not working on osSierra either 😒

from git-flow-completion.

bobthecow avatar bobthecow commented on August 10, 2024

Not without more info :)

What shell are you using? How did you install git-flow? Do you use an os package manager or shell plugin manager? Does regular git completion work for you? Does any other tab completion (besides files) work?

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

fair enough :)

i use iTerm + zsh + oh-my, and brew to install most of the packages (used to install both git and git-flow)
Regular git completion works, as well as other tab completion (besides files) such as grunt, bower, pip, pyenv, brew, and others.

let me know if you need any further infos

thanks

from git-flow-completion.

joshuakarjala avatar joshuakarjala commented on August 10, 2024

Also doesn't work here.

zsh 5.1.1 (x86_64-apple-darwin15.0.0)

git-flow and zsh installed by homebrew

git and many other tab-completions still work

from git-flow-completion.

mikedevita avatar mikedevita commented on August 10, 2024

@joshuakarjala what version of git are you using.. i have two macbook's both on el capitan.. one works the other doesn't..

Working

  1. zsh 5.0.8
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2.3.8 default installed)

Non Working

  1. zsh 5.0.8
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2.5.3 (installed via homebrew)

from git-flow-completion.

joshuakarjala avatar joshuakarjala commented on August 10, 2024
  1. zsh 5.1.1
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2..6.2

On Fri, Oct 23, 2015 at 7:21 PM, Mike DeVita [email protected]
wrote:

@joshuakarjala https://github.com/joshuakarjala what version of git are
you using.. i have two macbook's both on el capitan.. one works the other
doesn't..
Working

  1. zsh 5.0.8
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2.3.8

Non Working

  1. zsh 5.0.8
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2.5.3

β€”
Reply to this email directly or view it on GitHub
#43 (comment)
.

from git-flow-completion.

mikedevita avatar mikedevita commented on August 10, 2024

I think this has to do with _git completion in /usr/share .. It's not writable on capital because of the system integrity stuff. I could be wrong though. Haven't tested it yet.

Sent from my iPhone

On Oct 24, 2015, at 4:45 AM, Joshua Karjala-Svendsen [email protected] wrote:

  1. zsh 5.1.1
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2..6.2

On Fri, Oct 23, 2015 at 7:21 PM, Mike DeVita [email protected]
wrote:

@joshuakarjala https://github.com/joshuakarjala what version of git are
you using.. i have two macbook's both on el capitan.. one works the other
doesn't..
Working

  1. zsh 5.0.8
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2.3.8

Non Working

  1. zsh 5.0.8
  2. oh-my-zsh - latest from upgrade_oh_my_zsh
  3. git 2.5.3

β€”
Reply to this email directly or view it on GitHub
#43 (comment)
.

β€”
Reply to this email directly or view it on GitHub.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

same settings as @joshuakarjala here:

  • zsh 5.1.1 (x86_64-apple-darwin15.0.0)
  • oh-my-zsh - latest from upgrade_oh_my_zsh
  • git version 2.6.2
  • iTerm2 Build 2.1.4
  • OS X El Capitan (10.11.1)

from git-flow-completion.

c0nscience avatar c0nscience commented on August 10, 2024

I got the same error/issue on my fresh install mbp. I have the same environment as @davidetruffo

from git-flow-completion.

istrasci avatar istrasci commented on August 10, 2024

Same settings as @davidetruffo and I also get the error.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

Hi @bobthecow,
any news on this? :)

from git-flow-completion.

bobthecow avatar bobthecow commented on August 10, 2024

From what I can tell, it should still be working. Looking and git and zsh source, I don't see a reason for it to break. But to be honest, I just don't know. I don't use zsh, so this version of the completion is largely user supported. For fun, can one of you replace your _git completion file with the current HEAD version here:

http://sourceforge.net/p/zsh/code/ci/master/tree/Completion/Unix/Command/_git?format=raw

… and see if that fixes things?

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

Will try it tomorrow

On 22 Nov 2015, at 18:23, Justin Hileman [email protected] wrote:

From what I can tell, it should still be working. Looking and git and zsh source, I don't see a reason for it to break. But to be honest, I just don't know. I don't use zsh, so this version of the completion is largely user supported. For fun, can one of you replace your _git completion file with the current HEAD version here:

http://sourceforge.net/p/zsh/code/ci/master/tree/Completion/Unix/Command/_git?format=raw

… and see if that fixes things?

β€”
Reply to this email directly or view it on GitHub.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

@bobthecow no luck.. everything seems to be up to date..
I don't have much knowledge about bash-shell-scripts, but is there any way to make it fail loudly, or to see if the plugin actually loads?

from git-flow-completion.

c0nscience avatar c0nscience commented on August 10, 2024

I just uninstalled git 2.6.2 and stick with the apple git version and it works all fine

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

I just tried, and yes, it works properly with the apple version of git (git version 2.4.9 (Apple Git-60))

from git-flow-completion.

istrasci avatar istrasci commented on August 10, 2024

I also confirm it works when downgrading to git version 2.4.9 (Apple Git-60).

from git-flow-completion.

zx1986 avatar zx1986 commented on August 10, 2024
             ###                  User: zx1986
           ####                   Hostname: air
           ###                    Distro: OS X 10.11.1
   #######    #######             Kernel: Darwin
 ######################           Uptime: 2 days
#####################             Shell: /bin/zsh
####################              Terminal: screen iTerm.app
####################              CPU: Intel Core i5-3427U CPU @ 1.80GHz
#####################             Memory: 4 GB
 ######################           Disk: 79%
  ####################            Battery: 100
    ################              IP Address: .......
     ####     #####

zsh 5.1.1 (x86_64-apple-darwin14.5.0) with prezto
git version 2.6.3

not working :-(


Maybe because this?
https://developer.apple.com/library/mac/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html

from git-flow-completion.

EkkoG avatar EkkoG commented on August 10, 2024

I have close SIP feature,it also does not work.

from git-flow-completion.

EkkoG avatar EkkoG commented on August 10, 2024

Yes,my git installed by Homebrew, when I unlink git,use the system's git,it works.

from git-flow-completion.

istrasci avatar istrasci commented on August 10, 2024

Any progress on this at all? Still works with git version 2.5.4 (Apple Git-61), but not with the higher-versioned Homebrew ones.

from git-flow-completion.

esetnik avatar esetnik commented on August 10, 2024

I faced the same issue. I haven't dug into it too much yet. It's unfortunate as Apple git is very old.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

Hi people!

Just want to highlight that:

  • Mac OS 10.11.3
  • zsh 5.2 (x86_64-apple-darwin15.0.0)
  • git version 2.7.2 (the brewed one)
  • iTerm2 2.9.20160206

using git-flow-completion as a plugin it works again

I'm not sure why though :)

from git-flow-completion.

esetnik avatar esetnik commented on August 10, 2024

@davidetruffo can you provide some further configuration to help me get it going? I believe I have the same environment as you. I'm using oh-my-zsh with plugins git-flow-avh and git-flow-completion, but I've tried it with both git-flow and git-flow-avh.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

@esetnik i'll do my best :)

I am using zsh and oh-my-zsh (master branch) (don't know if that makes any difference honestly)
I've also realised that i had a git-flow-completion folder in my custom plugins (in .oh-my-zsh/custom/plugins) but it was actually not used (i removed it, and it's still working, maybe it was a legacy from some test i've done)

In my .zshrc file, i have those plugins enabled (i have many others, but those are the ones related to git)
git git-flow

In the same file, i also have this line:
fpath=(/usr/local/share/zsh-completions $fpath)
but then again, i'm not sure if this is related.

Things that i've done recently:

  • update/upgrade brew
  • upgraded to iTerm2 v3 beta (the version number is 2.9.20160206)

Any better? :)

from git-flow-completion.

esetnik avatar esetnik commented on August 10, 2024

@davidetruffo Thanks so much for the detailed analysis. I found two points of discrepancy between my config and yours:

  1. I had git-flow-completion enabled as a plugin. It's actually available in the .oh-my-zsh plugins directory but you may have followed the git-flow-completion instructions at one point which suggests cloning this repo as a custom plugin.
  2. I did not have fpath=(/usr/local/share/zsh-completions $fpath)

I found that a combination of removing the git-flow-completion from the plugins and adding fpath=(/usr/local/share/zsh-completions $fpath) fixed it for me as well!

I'm not sure what that magic line does but it works and it might help @bobthecow get to the bottom of this.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

@esetnik i'm glad i could help a bit :)
As far as i know, the magic line should tell zsh where to look for completions patterns. Perhaps zsh made it better and now it works. I'm not sure if this makes sense, so if anyone has some light to shed on this i'd be happy :)

from git-flow-completion.

esetnik avatar esetnik commented on August 10, 2024

@davidetruffo I actually realized that the suggestions you made did not persist to a new shell. I must have had the old Apple git sourced in the old shell. I currently have everything setup the same and can't get git flow completions with the previous solution.

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

@esetnik Apologies for the ridiculous late reply! Did you manage to make it work?
From my end, i can tell that it works fine now, and i removed the git-flow-completion plugin. Some details:

  • Mac OS 10.11.3
  • zsh 5.2 (x86_64-apple-darwin15.0.0)
  • git version 2.8.2 (the brewed one)
  • iTerm2 Build 2.9.20160426

from git-flow-completion.

esetnik avatar esetnik commented on August 10, 2024

Unfortunately not. I can only get it working with apple git and not brewed
one.
On Fri, May 13, 2016 at 7:14 AM Davide Truffo [email protected]
wrote:

@esetnik https://github.com/esetnik Apologies for the ridiculous late
reply! Did you manage to make it work?
From my end, i can tell that it works fine now, and i removed the
git-flow-completion plugin. Some details:

  • Mac OS 10.11.3
  • zsh 5.2 (x86_64-apple-darwin15.0.0)
  • git version 2.8.2 (the brewed one)
  • iTerm2 Build 2.9.20160426

β€”
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#43 (comment)

from git-flow-completion.

davidetruffo avatar davidetruffo commented on August 10, 2024

out of curiosity, are you using git-flow from brew as well? which version? (i have 0.4.1)

from git-flow-completion.

EkkoG avatar EkkoG commented on August 10, 2024

use Xcode's Git will fix this problem.

from git-flow-completion.

haifengkao avatar haifengkao commented on August 10, 2024

confirmed. Xcode's git version 2.7.4 (Apple Git-66) works fine.
If you use zgen, just add zgen oh-my-zsh plugins/git-flow to your .zshrc
and reset zgen by zgen reset

from git-flow-completion.

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.