Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #28 from kallisti5/master

One pretty large fix to avoid a infinite loop
  • Loading branch information...
commit e0f8d7710df9b6fae3ee96e0f5deafbaa30f3f5d 2 parents 77c95a9 + 691065a
@sickill authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 git-dude
View
10 git-dude
@@ -37,10 +37,10 @@ elif [ $(which growlnotify 2>/dev/null) ]; then
elif [ $(which kdialog 2>/dev/null) ]; then
notify_cmd='kdialog --icon $ICON_PATH --title "$TITLE" --passivepopup "$DESCRIPTION"'
elif [ $(which notify 2>/dev/null) ]; then
- notify_cmd='notify --type information --icon $ICON_PATH --group "Git Commit" --title "$TITLE" "$DESCRIPTION"'
+ notify_cmd='notify --type information --icon "$ICON_PATH" --group "Git Commit" --title "$TITLE" "$DESCRIPTION"'
fi
-function notify() {
+function dudenotify() {
local ICON_PATH="$1"
local TITLE="$2"
local DESCRIPTION="$3"
@@ -82,15 +82,15 @@ while true; do
commit_range=$(echo "$line" | awk '{ print $1 }')
branch_name=$(echo "$line" | awk '{ print $2 }')
commit_messages=$(git log $commit_range --pretty=format:'%s (%an)')
- notify $icon_path "New commits in $repo_name/$branch_name" "$commit_messages"
+ dudenotify $icon_path "New commits in $repo_name/$branch_name" "$commit_messages"
;;
*new\ branch*)
branch_name=$(echo "$line" | awk '{ print $3 }')
- notify $icon_path "New branch $repo_name/$branch_name" ""
+ dudenotify $icon_path "New branch $repo_name/$branch_name" ""
;;
*new\ tag*)
tag_name=$(echo "$line" | awk '{ print $3 }')
- notify $icon_path "New tag $repo_name/$tag_name" ""
+ dudenotify $icon_path "New tag $repo_name/$tag_name" ""
;;
esac
done <<< "$changes"
Please sign in to comment.
Something went wrong with that request. Please try again.