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

gitpuller errors #44

Closed
miramar-labs opened this issue May 21, 2018 · 3 comments
Closed

gitpuller errors #44

miramar-labs opened this issue May 21, 2018 · 3 comments
Labels

Comments

@miramar-labs
Copy link

I followed the instructions and installed gitpuller locally.
I created a repo here: https://github.com/miramar-labs/jlab-user-env.git
I then created a local test folder on my laptop:
mkdir test1
cd test1
then I tried:
gitpuller https://github.com/miramar-labs/jlab-user-env.git master .

got errors:
gitpuller https://github.com/miramar-labs/jlab-user-env.git master .
$ git fetch

fatal: Not a git repository (or any of the parent directories): .git

Traceback (most recent call last):
File "/Users/acody/miniconda3/bin/gitpuller", line 11, in
load_entry_point('nbgitpuller', 'console_scripts', 'gitpuller')()
File "/Users/acody/nbgitpuller/nbgitpuller/pull.py", line 211, in main
args.repo_dir
File "/Users/acody/nbgitpuller/nbgitpuller/pull.py", line 59, in pull
yield from self.update()
File "/Users/acody/nbgitpuller/nbgitpuller/pull.py", line 168, in update
yield from self.update_remotes()
File "/Users/acody/nbgitpuller/nbgitpuller/pull.py", line 105, in update_remotes
yield from execute_cmd(['git', 'fetch'], cwd=self.repo_dir)
File "/Users/acody/nbgitpuller/nbgitpuller/pull.py", line 41, in execute_cmd
raise subprocess.CalledProcessError(ret, cmd)
subprocess.CalledProcessError: Command '['git', 'fetch']' returned non-zero exit status 128.

any idea what I'm doing wrong?
also tried it from my jupyter singleuser pod .. same thing....

@clancychilds
Copy link

I just had this problem. Fixed it (I think) by running a git init in the directory that I was pulling into so that there is at least a .git set up in there.

@yuvipanda yuvipanda added the bug label May 22, 2019
@yuvipanda
Copy link
Contributor

Apologies for responding to this so late!

I think this is a duplicate of #15, so am going to close this in favor of that. Please re-open if you think otherwise.

Again, so sorry to respond so late!

@ratnanil
Copy link

ratnanil commented Sep 7, 2020

If anybody lands here because they are using jupyter-books and the launch buttons are not working properly: I fixed this issue by removing the trailing "/" of the repo-url in my _config.yml file.

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