@@ -43,26 +43,14 @@ teardown() {
43
43
[[ ${lines[*]} =~ " git rebase origin/master" ]]
44
44
}
45
45
46
- @test " 'actualize-work': makes a rebase of the given local branch without remote-tracking branch " {
46
+ @test " 'actualize-work': makes a rebase of the given local branch" {
47
47
fake-pass " git rebase branch"
48
48
check git-elegant actualize-work branch
49
49
[[ ${status} -eq 0 ]]
50
50
[[ ${lines[*]} =~ " git rebase branch" ]]
51
51
[[ ! ${lines[*]} =~ " git fetch" ]]
52
52
}
53
53
54
- @test " 'actualize-work': makes a rebase of the given local branch with remote-tracking branch" {
55
- fake-pass " git rev-parse --abbrev-ref rt@{upstream}"
56
- fake-pass " git fetch"
57
- fake-pass " git rev-parse --abbrev-ref rt@{upstream}" " origin/rt"
58
- fake-pass " git rebase origin/rt rt"
59
- fake-pass " git rebase rt"
60
- check git-elegant actualize-work rt
61
- [[ ${status} -eq 0 ]]
62
- [[ ${lines[*]} =~ " git fetch" ]]
63
- [[ ${lines[*]} =~ " git rebase origin/rt rt" ]]
64
- [[ ${lines[*]} =~ " git rebase rt" ]]
65
- }
66
54
67
55
@test " 'actualize-work': makes a rebase of the given remote-tracking branch" {
68
56
fake-pass " git for-each-ref refs/remotes/only/remote" " true"
@@ -74,18 +62,15 @@ teardown() {
74
62
[[ ${lines[*]} =~ " git rebase only/remote" ]]
75
63
}
76
64
77
- @test " 'actualize-work': uses local revision of thegiven remote-tracking branch if the fetch is failed" {
78
- fake-pass " git rev-parse --abbrev- ref rt@{upstream} "
65
+ @test " 'actualize-work': uses local revision of the given remote-tracking branch if the fetch is failed" {
66
+ fake-pass " git for-each- ref refs/remotes/origin/rt " " true "
79
67
fake-fail " git fetch"
80
- fake-pass " git rev-parse --abbrev-ref rt@{upstream}" " origin/rt"
81
- fake-pass " git rebase origin/rt rt"
82
- fake-pass " git rebase rt"
83
- check git-elegant actualize-work rt
68
+ fake-pass " git rebase origin/rt"
69
+ check git-elegant actualize-work origin/rt
84
70
[[ ${status} -eq 0 ]]
85
71
[[ ${lines[*]} =~ " git fetch" ]]
86
72
[[ ${lines[*]} =~ " Unable to fetch. The last local revision will be used." ]]
87
- [[ ${lines[*]} =~ " git rebase origin/rt rt" ]]
88
- [[ ${lines[*]} =~ " git rebase rt" ]]
73
+ [[ ${lines[*]} =~ " git rebase origin/rt" ]]
89
74
}
90
75
91
76
@test " 'actualize-work': uses stash pipe if uncommited changes are present" {
0 commit comments