ku1ik / git-dude

Git commit notifier

Home Page:http://ku1ik.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duplicate notification at every interval

glortho opened this issue · comments

I'm currently getting the same "new branch ss/date]" notification every 60 seconds. Whoever created this branch quickly deleted it, but the notification continues. Is this just a parsing issue?

"]" at the end of string suggests that it's parsing issue indeed. Can you run git dude with following command?

bash -x <path/to/git-dude> <your-dude-dir>

This will print everything that happens in the script and it would help me analyze the problem. I only need the part where git fetch is issued and following lines up to notify command.

thanks for the quicky reply! here it is:

++ git fetch -v
++ grep -F -- '->'

  • changes=' = [up to date] blueprint -> origin/blueprint
    = [up to date] comments -> origin/comments
    = [up to date] demo -> origin/demo
    = [up to date] dev -> origin/dev
    = [up to date] fe_addToBkmksFrmRL -> origin/fe_addToBkmksFrmRL
    = [up to date] fe_assetpack -> origin/fe_assetpack
    = [up to date] fe_bmlet -> origin/fe_bmlet
    = [up to date] fe_codecleanup -> origin/fe_codecleanup
    = [up to date] fe_ie -> origin/fe_ie
    = [up to date] fe_ie2 -> origin/fe_ie2
    = [up to date] fe_js_optimization -> origin/fe_js_optimization
    = [up to date] fe_macro_search -> origin/fe_macro_search
    = [up to date] fe_newbmlet -> origin/fe_newbmlet
    = [up to date] fe_notes -> origin/fe_notes
    = [up to date] fe_social -> origin/fe_social
    = [up to date] fe_tableimprov -> origin/fe_tableimprov
    = [up to date] fe_tags -> origin/fe_tags
    = [up to date] jstree_buckets -> origin/jstree_buckets
    = [up to date] master -> origin/master
    = [up to date] registration -> origin/registration
    = [up to date] rishi -> origin/rishi
    = [up to date] selenium -> origin/selenium
    = [up to date] socialauth -> origin/socialauth
    = [up to date] tihaImportTest -> origin/tihaImportTest'
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
  • read -r line
  • case $line in
    ++ echo '= [up to date] fe_newbmlet -> origin/fe_newbmlet'
    ++ awk '{ print $4 }'
  • branch_name='date]'
  • notify //icon.png 'New branch ss/date]'
    ++ which notify-send
  • '[' ']'
    ++ which growlnotify
  • '[' /usr/local/bin/growlnotify ']'
  • growlnotify --image //icon.png -m '' 'New branch ss/date]'

Thx. I will look into it in few hours and hopefully make a fix.

I see " git fetch -v".
git-dude doesn't use "-v" switch anymore for some time. Can you download latest script version and check if it still gives you this issue?

Just downloaded (first via curl then via brew, and did the x chmod) and now git-dude won't run at all. Double-checked PATH, tried to run with absolute path, checked perms, exited and re-entered shell, all no luck. Any thoughts about that?

EDIT: Running it with your command above yields these four lines and nothing else:

  • set -e
  • set -u
    ++ git config dude.interval
  • interval=

Please check your dude.interval setting in ~/.gitconfig. Looks like it's empty.

I set up an interval (there was no dude.interval or [dude] at all in my config – I had been using defaults) and still had problems, but noticed it was failing on the icon setting. I added that in and now everything seems to be running well. No sign of the duplication problem yet. Does this mean git-dude no longer has the default settings? Or maybe something else was screwy in my set-up...

Indeed you have found a bug with defaults not working ;) Looking into that.

Fixed in master, now the defaults are working again.