Skip to content

Commit

Permalink
Don't echo the github API key.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Aug 21, 2015
1 parent ced04d5 commit 54ee1df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Rakefile
Expand Up @@ -17,8 +17,8 @@ DESTINATION_REPO = USERNAME + "/" + (CONFIG["repo"] || "#{USERNAME}.github.io")
# User or organization: source -> master
# Project: master -> gh-pages
# Name of source branch for user/organization defaults to "source"
SOURCE_REPO = ENV['TRAVIS_REPO_SLUG']
if DESTINATION_REPO == "timvideos/#{USERNAME}.github.io"
SOURCE_REPO = ENV['TRAVIS_REPO_SLUG']
SOURCE_BRANCH = CONFIG['branch'] || "source"
DESTINATION_BRANCH = "master"
else
Expand Down Expand Up @@ -89,7 +89,10 @@ end

def check_destination
unless Dir.exist? CONFIG["destination"]
sh "git clone https://#{ENV['GIT_NAME']}:#{ENV['GH_TOKEN']}@github.com/#{DESTINATION_REPO}.git #{CONFIG["destination"]}"
print "git clone https://#{ENV['GIT_NAME']}:XXXXXXXX@github.com/#{DESTINATION_REPO}.git #{CONFIG["destination"]}\n"
verbose(false) do
sh "git clone https://#{ENV['GIT_NAME']}:#{ENV['GH_TOKEN']}@github.com/#{DESTINATION_REPO}.git #{CONFIG["destination"]}"
end
end
end

Expand Down

0 comments on commit 54ee1df

Please sign in to comment.