Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/git-svn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SYNOPSIS
--------
[verse]
'git svn' <command> [<options>] [<arguments>]
(UNSUPPORTED!)

DESCRIPTION
-----------
Expand Down
13 changes: 13 additions & 0 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,19 @@ sub term_init {
: new Term::ReadLine 'git-svn';
}

sub deprecated_warning {
my @lines = @_;
if (-t STDERR) {
@lines = map { "\e[33m$_\e[0m" } @lines;
}
warn join("\n", @lines), "\n";
}

deprecated_warning(
"WARNING: \`git svn\` is no longer supported by the Git for Windows project.",
"See https://github.com/git-for-windows/git/issues/5405 for details."
);

my $cmd;
for (my $i = 0; $i < @ARGV; $i++) {
if (defined $cmd{$ARGV[$i]}) {
Expand Down
3 changes: 2 additions & 1 deletion t/t9108-git-svn-glob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ test_expect_success 'test disallow multi-globs' '
svn_cmd commit -m "try to try"
) &&
test_must_fail git svn fetch three 2> stderr.three &&
test_cmp expect.three stderr.three
sed "/^WARNING.*no.* supported/{N;d}" <stderr.three >stderr.three.clean &&
test_cmp expect.three stderr.three.clean
'

test_done
3 changes: 2 additions & 1 deletion t/t9109-git-svn-multi-glob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ test_expect_success 'test disallow multiple globs' '
svn_cmd commit -m "try to try"
) &&
test_must_fail git svn fetch three 2> stderr.three &&
test_cmp expect.three stderr.three
sed "/^WARNING.*no.* supported/{N;d}" <stderr.three >stderr.three.clean &&
test_cmp expect.three stderr.three.clean
'

test_done
6 changes: 4 additions & 2 deletions t/t9168-git-svn-partially-globbed-names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ test_expect_success 'test disallow prefixed multi-globs' '
svn_cmd commit -m "try to try"
) &&
test_must_fail git svn fetch four 2>stderr.four &&
test_cmp expect.four stderr.four &&
sed "/^WARNING.*no.* supported/{N;d}" <stderr.four >stderr.four.clean &&
test_cmp expect.four stderr.four.clean &&
git config --unset svn-remote.four.branches &&
git config --unset svn-remote.four.tags
'
Expand Down Expand Up @@ -223,7 +224,8 @@ test_expect_success 'test disallow multiple asterisks in one word' '
svn_cmd commit -m "try to try"
) &&
test_must_fail git svn fetch six 2>stderr.six &&
test_cmp expect.six stderr.six
sed "/^WARNING.*no.* supported/{N;d}" <stderr.six >stderr.six.clean &&
test_cmp expect.six stderr.six.clean
'

test_done
Loading