You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: normalise path separators on Windows to fix sub-package tags (#165)
The git cli and the go os library return representations of the
same path using different path separators, so the comparison used here
returned false, and the absolute path of the repo was set as the
default for the pattern arg.
e.g.:
> git rev-parse --show-toplevel
C:/Users/Doug/Code/myrepo
os.getWd()
C:\\Users\\Doug\\Code\\myrepo
Using filepath.Clean() on both paths before using them normalises the
slashes to a single "\"
0 commit comments