Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G git-backup
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • git-backup
  • Merge requests
  • !14

test: do not use .keep in objects/ and refs/ git administrative folders

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Jérome Perrin requested to merge jerome/git-backup:fix/keep-git-2.52 into master Nov 28, 2025
  • Overview 6
  • Commits 1
  • Changes 5

This .keep empty file was here because git does not keep empty directories, but the expected status for the test was to have empty directories. After updating from git 2.48.0 to 2.52.0 this started to cause test failures with:

error: refs/.keep: badRefName: invalid refname format

Instead of using marker files, do not store these empty directories in git and create them during the test setup.

Edited Nov 28, 2025 by Jérome Perrin
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/keep-git-2.52
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7