You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running synctogit in a Ubuntu 22.04.4 machine, with git version 2.34.1.
Whem I call synctogit manually from terminal prompt it runs smoothly, but whem I call it from a bash script triggered by cron, I get:
Traceback (most recent call last):
File "/usr/local/bin/synctogit", line 11, in <module>
load_entry_point('synctogit==2.0.1', 'console_scripts', 'synctogit')()
File "/usr/local/lib/python2.7/dist-packages/synctogit/main.py", line 35, in main
run(pargs)
File "/usr/local/lib/python2.7/dist-packages/synctogit/main.py", line 49, in run
while _sync(git, evernote, config, pargs):
File "/usr/local/lib/python2.7/dist-packages/synctogit/main.py", line 78, in _sync
with git.transaction() as t:
File "/usr/local/lib/python2.7/dist-packages/synctogit/GitTransaction.py", line 186, in __enter__
self._check_repo_state()
File "/usr/local/lib/python2.7/dist-packages/synctogit/GitTransaction.py", line 157, in _check_repo_state
self._stash()
File "/usr/local/lib/python2.7/dist-packages/synctogit/GitTransaction.py", line 151, in _stash
if self.git.is_dirty(untracked_files=True):
File "/usr/local/lib/python2.7/dist-packages/git/repo/base.py", line 608, in is_dirty
len(self.git.diff('--cached', *default_args)):
File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 466, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 934, in _call_process
return self.execute(make_call(), **_kwargs)
File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 718, in execute
raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git diff --cached --abbrev=40 --full-index --raw' returned with exit code 129
stderr: 'error: unknown option `cached'
usage: git diff --no-index [<options>] <path> <path>
Which seens related to
def _stash(self):
if self.git.is_dirty(untracked_files=True):
self.git.stash('push', '-m', self._get_commit_message())
in GitTransaction.py
Is my perception correct? Do I need to adjust any settings?
The text was updated successfully, but these errors were encountered:
Hi
I'm running synctogit in a Ubuntu 22.04.4 machine, with git version 2.34.1.
Whem I call synctogit manually from terminal prompt it runs smoothly, but whem I call it from a bash script triggered by cron, I get:
Which seens related to
in
GitTransaction.py
Is my perception correct? Do I need to adjust any settings?
The text was updated successfully, but these errors were encountered: