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

gitautosync CLI seems to require being called in a git repo #15

Closed
arokem opened this issue Aug 31, 2017 · 2 comments
Closed

gitautosync CLI seems to require being called in a git repo #15

arokem opened this issue Aug 31, 2017 · 2 comments
Labels

Comments

@arokem
Copy link

arokem commented Aug 31, 2017

I am getting the following:

$ gitautosync --git-url https://github.com/data-8/gitautosync
2017-08-31 05:54:53,398] INFO -- Pulling into ./ from https://github.com/data-8/gitautosync, branch master
fatal: Not a git repository (or any parent up to mount point /home/neuro)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Traceback (most recent call last):
  File "/opt/conda/envs/neuro/bin/gitautosync", line 11, in <module>
    load_entry_point('gitautosync==0.0.1', 'console_scripts', 'gitautosync')()
  File "/opt/conda/envs/neuro/lib/python3.6/site-packages/gitautosync/__init__.py", line 165, in main
    args.repo_dir
  File "/opt/conda/envs/neuro/lib/python3.6/site-packages/gitautosync/__init__.py", line 75, in pull_from_remote
    yield from self._update_repo()
  File "/opt/conda/envs/neuro/lib/python3.6/site-packages/gitautosync/__init__.py", line 94, in _update_repo
    yield from self._reset_deleted_files()
  File "/opt/conda/envs/neuro/lib/python3.6/site-packages/gitautosync/__init__.py", line 106, in _reset_deleted_files
    status = subprocess.check_output(['git', 'status'], cwd=self.repo_dir)
  File "/opt/conda/envs/neuro/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/opt/conda/envs/neuro/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'status']' returned non-zero exit status 128.
$

It looks as though the first thing the gitautosync CLI does is to call git status?

@arokem
Copy link
Author

arokem commented Aug 31, 2017

Oh - I get it, the repo-dir input is supposed to be a directory that doesn't yet exist! So, if you do the default, you need to intend to be inside the already cloned repo!

@manics
Copy link
Member

manics commented Oct 3, 2020

It's been three years and there's been a lot of development, please re-open if this is still a problem.

@betatim betatim closed this as completed Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants