Impossible to pull from dir with a non-bare repository
Pulling/restoring a bare repository works fine for me (see commands in issue #1), but when I pull a non-bare repo, a problem occurs:
$ cd backup/
$ $ git-backup pull ../slapos/:slapos2
# file slapos2 <- ../slapos/.gitignore
# file slapos2 <- ../slapos/CHANGES.txt
# file slapos2 <- ../slapos/MANIFEST.in
# file slapos2 <- ../slapos/README.software.txt
# file slapos2 <- ../slapos/README.txt
# file slapos2 <- ../slapos/schema.json
# file slapos2 <- ../slapos/setup.py
# file slapos2 <- ../slapos/sla.schema.json
# git slapos2 <- ../slapos/.git
Traceback (most recent call last):
File "/usr/local/bin/git-backup", line 814, in <module>
main()
File "/usr/local/bin/git-backup", line 810, in main
cmd(argv[1:])
File "/usr/local/bin/git-backup", line 402, in cmd_pull
cmd_pull_(pullspecv)
File "/usr/local/bin/git-backup", line 465, in cmd_pull_
stderr=gitprogress())
File "/usr/local/bin/git-backup", line 119, in xgit
raise RuntimeError('git ' + ' '.join(argv) + '\n' + (stderr and stderr or '(failed)'))
RuntimeError: git -c fetch.fsckObjects=true fetch --no-tags ../slapos/.git refs/*:refs/backup/20160701-0820/slapos2/.git/*
fatal: Invalid refspec 'refs/*:refs/backup/20160701-0820/slapos2/.git/*'