1
0
mirror of https://github.com/git/git.git synced 2024-10-20 20:28:13 +02:00
git/perl/Git/SVN
Ammon Riley 9478b11968 Make git-svn branch patterns match complete URL
When using the {word,[...]} style of configuration for tags and branches,
it appears the intent is to only match whole path parts, since the words
in the {} pattern are meta-character quoted.

When the pattern word appears in the beginning or middle of the url,
it's matched completely, since the left side, pattern, and (non-empty)
right side are joined together with path separators.

However, when the pattern word appears at the end of the URL, the
right side is an empty pattern, and the resulting regex matches
more than just the specified pattern.

For example, if you specify something along the lines of

    branches = branches/project/{release_1,release_2}

and your repository also contains "branches/project/release_1_2", you
will also get the release_1_2 branch.  By restricting the match regex
with anchors, this is avoided.

Signed-off-by: Ammon Riley <ammon.riley@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
2012-10-05 22:48:12 +00:00
..
Memoize git-svn: use YAML format for mergeinfo cache when possible 2012-06-10 08:47:53 +00:00
Editor.pm git-svn: make Git::SVN::Editor a separate file 2012-06-10 08:45:56 +00:00
Fetcher.pm use Git::SVN->path accessor globally 2012-08-02 21:42:58 +00:00
GlobSpec.pm Make git-svn branch patterns match complete URL 2012-10-05 22:48:12 +00:00
Log.pm Extract Git::SVN::Log from git-svn. 2012-07-27 22:36:06 +00:00
Migration.pm use Git::SVN{,::RA}->url accessor globally 2012-08-02 21:42:59 +00:00
Prompt.pm
Ra.pm git-svn: canonicalize newly-minted URLs 2012-08-02 21:46:05 +00:00
Utils.pm git-svn: introduce add_path_to_url function 2012-08-02 21:46:03 +00:00