Skip to content

Commit 9237121

Browse files
committed
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.
1 parent 358500f commit 9237121

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

gitoxide-core/src/index/checkout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn checkout_exclusive(
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
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pub fn main() -> Result<()> {
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
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)