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

Recovering from manual git manipulations #98

Closed
rigasml opened this issue Jun 18, 2019 · 1 comment
Closed

Recovering from manual git manipulations #98

rigasml opened this issue Jun 18, 2019 · 1 comment

Comments

@rigasml
Copy link

rigasml commented Jun 18, 2019

I read that we weren't supposed to do manual git operations -- the automatic nbgitpuller was working and then I think I did something manually to my repo or local clone and messed it up and cannot recover. I now cannot seem to get anything but this message no matter what I do when I use the nbgitpuller link.

$ git fetch
fatal: Unable to read current working directory: No such file or directory
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/opt/anaconda3/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/opt/anaconda3/lib/python3.6/site-packages/nbgitpuller/handlers.py", line 73, in pull
raise e
File "/opt/anaconda3/lib/python3.6/site-packages/nbgitpuller/handlers.py", line 67, in pull
for line in gp.pull():
File "/opt/anaconda3/lib/python3.6/site-packages/nbgitpuller/pull.py", line 59, in pull
yield from self.update()
File "/opt/anaconda3/lib/python3.6/site-packages/nbgitpuller/pull.py", line 168, in update
yield from self.update_remotes()
File "/opt/anaconda3/lib/python3.6/site-packages/nbgitpuller/pull.py", line 105, in update_remotes
yield from execute_cmd(['git', 'fetch'], cwd=self.repo_dir)
File "/opt/anaconda3/lib/python3.6/site-packages/nbgitpuller/pull.py", line 41, in execute_cmd
raise subprocess.CalledProcessError(ret, cmd)
subprocess.CalledProcessError: Command '['git', 'fetch']' returned non-zero exit status 128.

@rigasml rigasml closed this as completed Jun 18, 2019
@rigasml
Copy link
Author

rigasml commented Jun 18, 2019

Figured out this issue by restarting Jupyter server and cleaning some environments

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