learn-submit 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_submit/submission/git_interactor.rb +8 -1
- data/lib/learn_submit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c6e48149f03bfb54310e6820077270414895335
|
4
|
+
data.tar.gz: e84921eb1d91fa3506006f00b505eaad9aa11648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5e7e597aad7fdc92def23ec0a2985a4da971e13eca46299245e0990480456f7681899235dd1dc09dc75028632ed29daf0705df62e0cadf40cb7da0db61d8ed
|
7
|
+
data.tar.gz: 8aec1afbb3242eae140157b433ced52b0ea6f499617aba87dcbbbb12b929190a48a441d872503fe2ee04b4f200c9e3174f47a30be3c7be4e18593b3743c4644a
|
@@ -69,7 +69,14 @@ module LearnSubmit
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def add_backup_remote
|
72
|
-
|
72
|
+
begin
|
73
|
+
git.add_remote("#{old_remote_name}-bak", old_url)
|
74
|
+
rescue Git::GitExecuteError => e
|
75
|
+
if e.message.match(/already exists/).nil?
|
76
|
+
puts "Sorry, something Git-related went wrong. Please try again."
|
77
|
+
exit
|
78
|
+
end
|
79
|
+
end
|
73
80
|
end
|
74
81
|
|
75
82
|
def remove_old_remote
|
data/lib/learn_submit/version.rb
CHANGED