Skip to content

Commit

Permalink
use glob --exclude instead of glob --not (#38)
Browse files Browse the repository at this point in the history
related to
- nushell/nushell#10827
- nushell/nushell#10839

## description
`glob --not` has been deprecated in
nushell/nushell#10827 and will be removed in
nushell/nushell#10839 before 0.88.0 in favor of
`glob --exclude`.

this PR performs the change in `nu-git-manager`.

Co-authored-by: Mel Massadian <melmassadian@gmail.com>
  • Loading branch information
amtoine and melMass authored Nov 17, 2023
1 parent ab9fdc6 commit cedd3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nu-git-manager/fs/store.nu
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export def list-repos-in-store []: nothing -> list<path> {
# first and then perform the globbing
# related to https://github.com/nushell/nushell/issues/7125
cd (get-repo-store-path)
let heads: list<string> = glob "**/HEAD" --not [
let heads: list<string> = glob "**/HEAD" --exclude [
**/.git/**/refs/remotes/**/HEAD,
**/.git/modules/**/HEAD,
**/logs/HEAD
Expand Down

0 comments on commit cedd3d2

Please sign in to comment.