Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't sync if on previously repo was unaccessible #19

Open
maslovw opened this issue Apr 30, 2024 · 0 comments
Open

Doesn't sync if on previously repo was unaccessible #19

maslovw opened this issue Apr 30, 2024 · 0 comments

Comments

@maslovw
Copy link

maslovw commented Apr 30, 2024

Steps to reproduce:

  • disconnect from VPN (I guess simple internet disconnect would do too)
  • change any file
  • call git-auto-sync sync
    • it should give an error accessing remote repository
  • connect VPN
  • try git-auto-sync sync

Expect: retry: git add; git commit; git pull; git push
Observed: nothing to commit -> stops even though local is 1 commit ahead of remote

➜  git-auto-sync --version
git-auto-sync version 1.5

➜  git-auto-sync sync
2024/04/30 16:23:23 exit status 128: Command: git fetch origin
StdOut:
StdErr: ssh: Could not resolve hostname gerrit.int.COMPANY.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
➜  git-auto-sync sync
2024/04/30 16:23:51 exit status 1: Command: git commit -m  D rust/ripgrep-all
 D rust/rustlings
 D tools/clink/clink-completions
StdOut: On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

StdErr:
➜ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant