-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Include trailing slash in prefix migration instructions #3790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Closes #3786 Signed-off-by: Michael Osthege <[email protected]>
@dscho to me it looks like there was simply a typo. You're probably most qualified to judge if I did right change here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks right to me, thanks!
Small pass-by comment, but when I read that error message I really thought that there was a bug in the code and |
Hmm. Does this still work for paths like |
But can one even encounter such a path on Windows? |
Do the instructions need to note the distinction between |
This allowed me to continue using Git without any warnings:
|
@michaelosthege That was the precise use case for The |
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
…instructions After attempting to add directory on a network share to the `safe.directory` configuration with, for example: ``` git config --global --add safe.directory //servername/repos/myrepo ``` The warning about an outdated path style: ``` warning: encountered old-style '//servername/repos/myrepo' that should be '%(prefix)//servername/repos/myrepo' ``` However, the warning is missing a trailing `/` behind the prefix. This PR fixes the warning such that the resulting configuration works. Also see https://stackoverflow.com/a/71859164/4473230 Closes #3786
After attempting to add directory on a network share to the
safe.directory
configuration with, for example:The warning about an outdated path style:
However, the warning is missing a trailing
/
behind the prefix.This PR fixes the warning such that the resulting configuration works.
Also see https://stackoverflow.com/a/71859164/4473230
Closes #3786