I am using SourceTree 1.6. We are using precommit shell script GIT hook. In the hook we are asking the developer to input a value from keyboard and then that value is captured in a variable and used further. When I do a commit using 'git commit' command from GIT Bash Tool it stops for the user input , after the user enters the value the script is completed successfully. But when we do a commit from SourceTree, it seems the script waits for the input but I don't see the place where to provide the input. Can you please help ?
My script is something like this:
exec < /dev/tty
read -p 'path : ' user_entry
SourceTree 1.6 is no longer a supported version; it's available for download only for those that need it as a fallback for a specific reason. That said, interactive scripting triggered by commits isn't supported within the Sourcetree UI.
Senior Mac Developer, Sourcetree
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs