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
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot