-
- Downloads
fix relative alternates paths
Relative paths in a <repo>.git/objects/info/alternates file are to be expanded relative to the <repo>.git/objects directory. Previously, they were expanded relative to the <repo>.git directory. The current code checks in both locations for backward compatibility with grit <= 2.3.0 but I'd rather rip it out completely.
Showing
- lib/grit/git-ruby/repository.rb 29 additions, 21 deletionslib/grit/git-ruby/repository.rb
- test/dot_git_clone/objects/info/alternates 1 addition, 1 deletiontest/dot_git_clone/objects/info/alternates
- test/dot_git_clone2/objects/info/alternates 1 addition, 1 deletiontest/dot_git_clone2/objects/info/alternates
Please register or sign in to comment