Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
G git-backup
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • git-backup
  • Issues
  • #2

Closed
Open
Created Jul 01, 2016 by iv@iv

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/*'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7