History

Assure we load all gitattributes when needed.

This is an on-demand operation anyway, but now we turn on the loading of git binary-specific gitattributes which should help to emulate gits behaviour perfectly.

Sebastian Thiel committed 3 years ago

Commit 92371211 parent 358500f3 files · +4 −3Browse files

Unified · Split

3 files
  1. gitoxide-core/src/index/checkout.rs +1 −1
  2. src/plumbing/main.rs +1 −0
  3. tests/snapshots/plumbing/repository/remote/refs/remote ref-list-no-networking-in-small-failure +2 −2
gitoxide-core/src/index/checkout.rs+1−1
@@ -56,7 +56,7 @@ pub fn checkout_exclusive( · 55 unmodified lines
5656 }
5757
5858 let opts = gix::worktree::index::checkout::Options {
59− fs: gix::worktree::fs::Capabilities::probe(dest_directory),
59+ fs: gix::utils::FilesystemCapabilities::probe(dest_directory),
6060
6161 destination_is_initially_empty: true,
6262 overwrite_existing: false,
src/plumbing/main.rs+1−0
@@ -84,6 +84,7 @@ pub fn main() -> Result<()> { · 83 unmodified lines
8484 );
8585 let to_match_settings = |mut opts: gix::open::Options| {
8686 opts.permissions.config.git_binary = git_installation;
87+ opts.permissions.attributes.git_binary = git_installation;
8788 if config.is_empty() {
8889 opts
8990 } else {
tests/snapshots/plumbing/repository/remote/refs/remote ref-list-no-networking-in-small-failure+2−2
@@ -1,7 +1,7 @@
11 error: unrecognized subcommand 'remote'
22
3− note: subcommands 'r', 'tree', 'free' exist
4− note: to pass 'remote' as a value, use 'gix -- remote'
3+ tip: some similar subcommands exist: 'r', 'tree', 'free'
4+ tip: to pass 'remote' as a value, use 'gix -- remote'
55
66 Usage: gix [OPTIONS] <COMMAND>
77