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
56 }56 }
57 57
58 let opts = gix::worktree::index::checkout::Options {58 let opts = gix::worktree::index::checkout::Options {
59 fs: gix::worktree::fs::Capabilities::probe(dest_directory),59 fs: gix::utils::FilesystemCapabilities::probe(dest_directory),
60 60
61 destination_is_initially_empty: true,61 destination_is_initially_empty: true,
62 overwrite_existing: false,62 overwrite_existing: false,
src/plumbing/main.rs+1−0
@@ -84,6 +84,7 @@ pub fn main() -> Result<()> { · 83 unmodified lines
84 );84 );
85 let to_match_settings = |mut opts: gix::open::Options| {85 let to_match_settings = |mut opts: gix::open::Options| {
86 opts.permissions.config.git_binary = git_installation;86 opts.permissions.config.git_binary = git_installation;
87 opts.permissions.attributes.git_binary = git_installation;
87 if config.is_empty() {88 if config.is_empty() {
88 opts89 opts
89 } else {90 } else {
tests/snapshots/plumbing/repository/remote/refs/remote ref-list-no-networking-in-small-failure+2−2
@@ -1,7 +1,7 @@
1error: unrecognized subcommand 'remote'1error: unrecognized subcommand 'remote'
2 2
3 note: subcommands 'r', 'tree', 'free' exist3 tip: some similar subcommands exist: 'r', 'tree', 'free'
4 note: to pass 'remote' as a value, use 'gix -- remote'4 tip: to pass 'remote' as a value, use 'gix -- remote'
5 5
6Usage: gix [OPTIONS] <COMMAND>6Usage: gix [OPTIONS] <COMMAND>
7 7