github_fastforward 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/github_fastforward +19 -0
- 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: ba79be9af2157f4b870aaf7e8b4ec59dbb66d4fb
|
4
|
+
data.tar.gz: 3b87ea4b7980c5076d0f02eb5f9ed8c7113b84c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a297c5d81180428ae91377b535d847f8e7fb86aec014cfda3331c749e0a36da89e1148d5deefd74955cbebf7ac4b18222a67a7e97634832b66cad1714d2d20d5
|
7
|
+
data.tar.gz: 9b950b2d7b087f4851df6886494046f1b54ad116d1e06d3cc9c42bdd038e485db75deab82b8e29cff77a31c6e9819d51d5f3ad567d33359752b05aa78e54569f
|
data/bin/github_fastforward
CHANGED
@@ -4,6 +4,25 @@ require "octokit"
|
|
4
4
|
|
5
5
|
parent = "upstream"
|
6
6
|
|
7
|
+
if ARGV[0] == "-a"
|
8
|
+
print "Username: "
|
9
|
+
uname = STDIN.gets.chomp
|
10
|
+
print "Password: "
|
11
|
+
pword = STDIN.gets.chomp
|
12
|
+
end
|
13
|
+
|
14
|
+
if ARGV[0] == "-u" && ARGV[2] == "-p"
|
15
|
+
uname = ARGV[1]
|
16
|
+
pword = ARGV[3]
|
17
|
+
end
|
18
|
+
|
19
|
+
if uname != nil && pword != nil
|
20
|
+
Octokit.configure do |conf|
|
21
|
+
conf.login = uname
|
22
|
+
conf.password = pword
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
7
26
|
unless system "git rev-parse --git-dir > /dev/null 2>&1"
|
8
27
|
puts "Not in a git repo!"
|
9
28
|
exit
|