New issue
Advanced search Search tips

Issue 753916 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: ----
Type: Bug



Sign in to add a comment

git cl not working after Mac update

Project Member Reported by hkamila@google.com, Aug 9 2017

Issue description

I 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.

 
Can you provide the full output of `echo $PATH`, perhaps with sensitive paths redacted?

Comment 2 by hkamila@google.com, Aug 9 2017

Cc: aga...@chromium.org
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
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?

Comment 4 by hkamila@google.com, 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)
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?

Comment 6 by hkamila@google.com, 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.

Comment 7 by hkamila@google.com, Aug 10 2017

Status: Fixed (was: Untriaged)
I completely removed the depot_tools and cloned the depot_tools repo again, and it apparently worked. Thanks!

Sign in to add a comment