blob: 2e53350c616ab26d0c0b4e56a2ef1ea93e51e8bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/usr/bin/env perl -w
use strict;
use Test::More;
use Bin qw($BIN);
chdir 't-git-repo' or die $!;
system('git branch first');
ok !$?;
system("$BIN save first");
ok !$?;
system('git branch second');
ok !$?;
system("$BIN save second");
ok !$?;
system("$BIN clear");
ok !$?;
my $branch_list = qx($BIN);
is $branch_list, '';
# Teardown
system('git branch -d first second');
done_testing;
|