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

Push, pull and gc commands result in the following error #97

Open
Alexarea02 opened this issue Nov 15, 2019 · 4 comments
Open

Push, pull and gc commands result in the following error #97

Alexarea02 opened this issue Nov 15, 2019 · 4 comments

Comments

@Alexarea02
Copy link

Alexarea02 commented Nov 15, 2019

$ git fat push
Traceback (most recent call last):
  File "C:\Program Files\Python27\Scripts\git-fat", line 1121, in <module>
    main()
  File "C:\Program Files\Python27\Scripts\git-fat", line 1110, in main
    run(backend, **kwargs)
  File "C:\Program Files\Python27\Scripts\git-fat", line 991, in run
    getattr(gitfat, fn)(**kwargs)
  File "C:\Program Files\Python27\Scripts\git-fat", line 905, in push
    files = self._referenced_objects(**kwargs) & self._cached_objects()
  File "C:\Program Files\Python27\Scripts\git-fat", line 535, in _referenced_objects
    objs_dict = self._managed_files(**kwargs)
  File "C:\Program Files\Python27\Scripts\git-fat", line 593, in _managed_files
    for objhash, objtype, size in revlistgen:
  File "C:\Program Files\Python27\Scripts\git-fat", line 557, in _rev_list
    awk = sub.Popen([awk_tool, '{print $1}'], stdin=revlist.stdout, stdout=sub.PIPE)
  File "C:\Program Files\Python27\lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "C:\Program Files\Python27\lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Any idea why this might be ?

@Alexarea02 Alexarea02 changed the title Any command that I try to run result in the following error Push, pull and gc commands result in the following error Nov 15, 2019
@Alexarea02
Copy link
Author

Is there anybody that had this problem before? I am still fighting with this error.

@mahimahi42
Copy link

I am also experiencing this error on Windows with Python 2.7.5, have been attempting to troubleshoot but no success yet.

@mahimahi42
Copy link

Did end up finding a work-around for using git-fat, though it is obtuse.

  1. Install Cygwin with the following packages:
    a. git
    b. python2
    c. rsync
  2. Add the following to Cygwin's .bashrc: export PATH="<path to directory with git-fat script>:$PATH".
  3. Either restart Cygwin command line or run source ~/.bashrc.
  4. git-fat should now work.

@mahimahi42
Copy link

The cause of the underlying issue is a lack of rsync on Windows. I attempted a few sets of instructions of adding rsync to the MSYS installation provided by Git for Windows, but was unable to find a working solution. Going through Cygwin did work relatively out of the box.

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

2 participants