Skip to content

Commit

Permalink
Fix to hide github token
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes committed Aug 27, 2013
1 parent 149b171 commit d7fad4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
@@ -1,5 +1,5 @@
MASTER_REPOSITORY = if ENV['GH_TOKEN']
"https://#{ENV['GH_TOKEN']}@github.com/sapporojs/sapporojs.org"
'https://$GH_TOKEN@github.com/sapporojs/sapporojs.org'
else
'git@github.com:sapporojs/sapporojs.org.git'
end
Expand All @@ -11,7 +11,7 @@ def initialize_repository(repository, branch)

if Dir["#{DEST_DIR}/.git"].empty?
FileUtils.rm_rf DEST_DIR
sh "git clone #{repository} #{DEST_DIR}"
system "git clone --quiet #{repository} #{DEST_DIR} 2> /dev/null"
end

Dir.chdir DEST_DIR do
Expand Down Expand Up @@ -44,7 +44,7 @@ def push_to_gh_pages(repository, branch)
Dir.chdir DEST_DIR do
sh 'git add -A'
sh "git commit -m 'Update with #{sha1}'"
sh "git push #{repository} #{branch}"
system "git push --quiet #{repository} #{branch} 2> /dev/null"
end
end

Expand Down

0 comments on commit d7fad4f

Please sign in to comment.