Skip to content

Commit 4ec3ff5

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 64d9a18 commit 4ec3ff5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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)