gokdok 0.1.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gokdok.rb +0 -7
- metadata +1 -1
data/lib/gokdok.rb
CHANGED
@@ -52,11 +52,6 @@ module Gokdok
|
|
52
52
|
|
53
53
|
private
|
54
54
|
|
55
|
-
# Fix git variables that may have been set by other tasks
|
56
|
-
def clear_git_vars
|
57
|
-
%w(GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE).each { |var| ENV[var] = nil }
|
58
|
-
end
|
59
|
-
|
60
55
|
def find_git_binary
|
61
56
|
`which git`.chop
|
62
57
|
end
|
@@ -115,7 +110,6 @@ module Gokdok
|
|
115
110
|
end
|
116
111
|
|
117
112
|
def run_git_command(command)
|
118
|
-
clear_git_vars
|
119
113
|
result = system("#{git_path} #{command}")
|
120
114
|
raise(RuntimeError, "Could not run: git #{command}") unless(result)
|
121
115
|
end
|
@@ -137,7 +131,6 @@ module Gokdok
|
|
137
131
|
|
138
132
|
desc 'Create the documentation without actually pushing it'
|
139
133
|
task :update => rdoc_task do
|
140
|
-
clear_git_vars
|
141
134
|
repo = Grit::Repo.new(pages_home)
|
142
135
|
remote_dir = File.join(pages_home, remote_path)
|
143
136
|
|