Skip to content

Commit

Permalink
Assure we load all gitattributes when needed.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Byron committed Apr 13, 2023
1 parent 358500f commit 9237121
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gitoxide-core/src/index/checkout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn checkout_exclusive(
}

let opts = gix::worktree::index::checkout::Options {
fs: gix::worktree::fs::Capabilities::probe(dest_directory),
fs: gix::utils::FilesystemCapabilities::probe(dest_directory),

destination_is_initially_empty: true,
overwrite_existing: false,
Expand Down
1 change: 1 addition & 0 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pub fn main() -> Result<()> {
);
let to_match_settings = |mut opts: gix::open::Options| {
opts.permissions.config.git_binary = git_installation;
opts.permissions.attributes.git_binary = git_installation;
if config.is_empty() {
opts
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: unrecognized subcommand 'remote'

note: subcommands 'r', 'tree', 'free' exist
note: to pass 'remote' as a value, use 'gix -- remote'
tip: some similar subcommands exist: 'r', 'tree', 'free'
tip: to pass 'remote' as a value, use 'gix -- remote'

Usage: gix [OPTIONS] <COMMAND>

Expand Down

0 comments on commit 9237121

Please sign in to comment.