gitPush 1.1 – added error trapping
February 17th, 2009
I added some error trapping to gitPush.app
The output of git is sent to a temporary file in the repo’s root. This way Applescript it not listening for it. Once the sh is done, I read the file. If it’s blank the app exists quietly. Otherwise the contents of the file are displayed.
– read the log file for errors
set theResult to do shell script “cd \”" & thePath & “/\”; cat gitPushOutput.temp”
if theResult is not “” then
tell application “gitPush”
activate
end tell
display dialog “There was an error. git said…
set theResult to do shell script “cd \”" & thePath & “/\”; cat gitPushOutput.temp”
if theResult is not “” then
tell application “gitPush”
activate
end tell
display dialog “There was an error. git said…
” & theResult buttons {“Quit”} default button 1 with icon 2
end if

git Error dialog
Now, the toolbar icon does not get stuck in chromo-mode upon error.
Get the update: http://github.com/WebVeteran/gitpush/

Recent Comments