git cl not working after Mac update |
|||
Issue descriptionI executed several git cl commands eg: "git cl format" and I got: git: 'cl' is not a git command. See 'git --help'. I'm sure the depot tools are in my PATH, and "git-cl" works as well. This started happening after updating my Mac yesterday.
,
Aug 9 2017
echo $PATH: /Users/hkamila/bin:/usr/local/bin:/Users/hkamila/work/chrome/depot_tools::/Users/hkamila/.local/bin:/Users/hkamila/bin:/Users/hkamila/rc/common/functions:/Users/hkamila/work/chrome/depot_tools:/Users/hkamila/work/chrome/depot_tools/:/bin:/home/hkamila/depot_tools:/path/to/depot_tools:/sbin:/usr/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/local/google/home/vakh/work/chrome/depot_tools:/usr/local/sbin:/usr/sbin:~/depot_tools
,
Aug 9 2017
Ok, so there are 7 instances of depot_tools on your $PATH: /Users/hkamila/work/chrome/depot_tools /Users/hkamila/work/chrome/depot_tools /Users/hkamila/work/chrome/depot_tools/ /home/hkamila/depot_tools /path/to/depot_tools /usr/local/google/home/vakh/work/chrome/depot_tools ~/depot_tools The first three of these are the same and seem likely to be correct; the others are likely wrong. In any event, can you make sure that the copy in your ~/work/chrome/depot_tools is up-to-date?
,
Aug 9 2017
I fetched and rebased the depot_tools, and this should be already in the path but still not working: type git-cl git-cl is hashed (/Users/hkamila/depot_tools/git-cl)
,
Aug 9 2017
Interestingly, /Users/hkamila/depot_tools/git-cl is not the same location as the entries on your $PATH (/Users/hkamila/work/chrome/depot_tools). Are you sure you updated the correct directory?
,
Aug 9 2017
Oh sorry, forgot to note, I updated it after your previous message to " /Users/hkamila/depot_tools/git-cl". It was in the work/chrome/ before. So yes, I'm sure.
,
Aug 10 2017
I completely removed the depot_tools and cloned the depot_tools repo again, and it apparently worked. Thanks! |
|||
►
Sign in to add a comment |
|||
Comment 1 by aga...@chromium.org
, Aug 9 2017