hbons/SparkleShare — Issue #439: Endless loop in pushing changes if git server is unreachable
Author: rombert
Created: 2011-11-17 08:53:06+00:00
State: open

If I have outgoing changes which need to be pushed and start the client while the git server is down I get a seemingly endless stream of attempts to push. There should be at least a small delay - 5 seconds ? - between retries if the server is unreachable .

```10:48:52 [SyncUp][MyServer] Initiated
10:48:52 [Cmd] /usr/bin/git add --all
10:48:52 [Git][MyServer] Changes staged
10:48:52 [Cmd] /usr/bin/git status --porcelain
10:48:52 [Cmd] /usr/bin/git commit -m "" --author="Robert Munteanu "
10:48:52 [Commit][MyServer]
10:48:52 [Cmd] /usr/bin/git push origin master
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:52 [SyncUp][MyServer] Error
10:48:52 [SyncDown][MyServer] Initiated
10:48:52 [Cmd] /usr/bin/git log -1 --format=%H
10:48:52 [Cmd] /usr/bin/git fetch -v
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:52 [SyncDown][MyServer] Error
10:48:52 [Cmd] /usr/bin/git add --all
10:48:52 [Git][MyServer] Changes staged
10:48:52 [Cmd] /usr/bin/git status --porcelain
10:48:52 [Cmd] /usr/bin/git commit -m "" --author="Robert Munteanu "
10:48:52 [Commit][MyServer]
10:48:52 [Cmd] /usr/bin/git push origin master
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:52 [SyncUp][MyServer] Initiated
10:48:52 [Cmd] /usr/bin/git add --all
10:48:52 [Git][MyServer] Changes staged
10:48:52 [Cmd] /usr/bin/git status --porcelain
10:48:52 [Cmd] /usr/bin/git commit -m "" --author="Robert Munteanu "
10:48:52 [Commit][MyServer]
10:48:52 [Cmd] /usr/bin/git push origin master
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:52 [SyncUp][MyServer] Error
10:48:52 [SyncDown][MyServer] Initiated
10:48:52 [Cmd] /usr/bin/git log -1 --format=%H
10:48:52 [Cmd] /usr/bin/git fetch -v
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:52 [SyncDown][MyServer] Error
10:48:52 [Cmd] /usr/bin/git add --all
10:48:52 [Git][MyServer] Changes staged
10:48:52 [Cmd] /usr/bin/git status --porcelain
10:48:52 [Cmd] /usr/bin/git commit -m "" --author="Robert Munteanu "
10:48:52 [Commit][MyServer]
10:48:52 [Cmd] /usr/bin/git push origin master
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:52 [SyncUp][MyServer] Initiated
10:48:52 [Cmd] /usr/bin/git add --all
10:48:53 [Git][MyServer] Changes staged
10:48:53 [Cmd] /usr/bin/git status --porcelain
10:48:53 [Cmd] /usr/bin/git commit -m "" --author="Robert Munteanu "
10:48:53 [Commit][MyServer]
10:48:53 [Cmd] /usr/bin/git push origin master
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:53 [SyncUp][MyServer] Error
10:48:53 [SyncDown][MyServer] Initiated
10:48:53 [Cmd] /usr/bin/git log -1 --format=%H
10:48:53 [Cmd] /usr/bin/git fetch -v
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly
10:48:53 [SyncDown][MyServer] Error
10:48:53 [Cmd] /usr/bin/git add --all
10:48:53 [Git][MyServer] Changes staged
10:48:53 [Cmd] /usr/bin/git status --porcelain
10:48:53 [Cmd] /usr/bin/git commit -m "" --author="Robert Munteanu "
10:48:53 [Commit][MyServer]
10:48:53 [Cmd] /usr/bin/git push origin master
ssh: connect to host 192.168.58.31 port 22: Connection refused
fatal: The remote end hung up unexpectedly```