Please describe the problem.
In SmartGit, doing a cherry-pick invokes the following 2 commands.
git cherry-pick --no-commit <commit-id>
git commit "--author='<name and email>'" "--date='<date-time>'" --file=/var/folders/bw/jh4pq43918gfd_r7qxzkkt_40000gq/T/smartgit3129597356340000806tmp/commit7268815197345344355.tmp
The error is git 'annex' is not a git command.
What steps will reproduce the problem?
git-annex init <some-name>
Do some commits in 2 branches. Do a cherry-pick in SmartGit.
What version of git-annex are you using? On what operating system?
PLEASE provide instructions here on how to get the git-annex version.
(It is git-annex version
. And why is git-annex | less
blanking out when I press any key?)
git-annex: 5.20151019
OS: Mac OS El Capitan.
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
# End of transcript or log.
Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
Yes. Lots. Am an expert at it now.
This can either be a problem with SmartGit, or a problem with the hacks that git-annex puts into a standard git repo.
git-annex init
sets up .git/hooks/pre-commit to rungit annex pre-commit
. It looks like when git commit is run, the git-annex program is not in PATH. This probably has something to do with the way you installed git-annex.(Why is git-annex | less blanking out? Because git-annex outputs usage messages to stderr, and less pages stdout. Use git-annex 2>&1 |less)
which git-annex
shows/usr/local/bin/git-annex
. I think I installed via Homebrew.Seems to be a problem with SmartGit then. The pre-commit hooks work just fine in Terminal sessions.
Ah. Oops.
If SmartGit is started from the OSX GUI, and /usr/local/bin is added to your PATH in eg .bashrc, there's a good chance that the PATH won't include it.
If this were a Linux system, I'd suggest setting the PATH in
.xsessionrc
. I don't know what the equivilant is for OSX.