Twenga / twgit

Twgit is a free and open source assisting tools for managing features, hotfixes and releases on Git repositories. It provides simple, high-level commands to adopt the branching model describes in our documentation. Supported OS: Debian/Ubuntu Linux, Mac OS X 10.8 (Mountain Lion) or lower.
http://twgit.twenga.com/
Other
111 stars 34 forks source link

Alert if bash < v4 #62

Open geoffroy-aubry opened 12 years ago

geoffroy-aubry commented 12 years ago

Better than bug: 'declare -A: invalid option'…

monsieurchico commented 10 years ago

Problem is that on mac os, even with bash 4, you got twgit/conf/twgit-dist.sh: line 68: declare: -A: invalid option ...

geoffroy-aubry commented 10 years ago

Hello, some twgit commands recursively execute twgit. Probably you need to update TWGIT_BASH_EXEC in twgit/conf/twgit.sh. Default value is: TWGIT_BASH_EXEC="/bin/bash", but path of Bash 4 on OSX must be different…

monsieurchico commented 10 years ago

there are some others problems with macos. I fixed it here : https://github.com/rderocle/twgit/compare/hotfix-1.13.1?expand=1

what do you think ? It works on macos 10.9.1, bash 4

Sebastien-Hanicotte commented 10 years ago

it would really be interesting to alert the user during the installation processus for this particular behaviour. I just installed Twgit on a fresh Maverick configuration (bash 3.2 :D) and it installed with color display without any problem... it was just when asking for a twgit feature (or other command) that twgit began to crash. I'll try to play a little with this new configuration to see if something nice could be done to this :bug: