Sutto-gitauth-gh 0.0.1.0 → 0.0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gitauth/gh_mirror.rb +2 -2
- metadata +1 -1
data/lib/gitauth/gh_mirror.rb
CHANGED
@@ -11,7 +11,7 @@ module GitAuth
|
|
11
11
|
|
12
12
|
Project = Struct.new(:name, :github_clone_url, :repository)
|
13
13
|
|
14
|
-
VERSION = [0, 0,
|
14
|
+
VERSION = [0, 0, 2, 0]
|
15
15
|
|
16
16
|
def initialize(username, token)
|
17
17
|
@api = GitHubApi.new(username, token)
|
@@ -31,7 +31,7 @@ module GitAuth
|
|
31
31
|
def update!(p)
|
32
32
|
return unless p.repository
|
33
33
|
Dir.chdir(p.repository.real_path) do
|
34
|
-
GitAuth.run "git
|
34
|
+
GitAuth.run "git fetch origin --force"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|