blob: 16767bfc35a6efb0b15a46d32adb312efca2536f (
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
35
36
37
38
39
40
41
42
|
#!/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('git branch third');
ok !$?;
system("$BIN save third");
ok !$?;
system("$BIN drop 1 3");
ok !$?;
my $branch_list = qx($BIN);
is $branch_list, ' 1 second
';
# Teardown
system('git branch -d first second third');
system("$BIN clear");
done_testing;
|