Fetching from github

This commit is contained in:
Tomasz Drwięga
2016-08-30 14:25:39 +02:00
parent 61879ef144
commit 2a549386a6
5 changed files with 24 additions and 6 deletions

View File

@@ -33,8 +33,7 @@ pub struct GithubApp {
impl GithubApp {
pub fn url(&self) -> String {
// format!("https://github.com/{}/{}/archive/{}.zip", self.account, self.repo, self.commit.to_hex())
format!("http://github.todr.me/{}/{}/zip/{}", self.account, self.repo, self.commit.to_hex())
format!("https://github.com/{}/{}/archive/{}.zip", self.account, self.repo, self.commit.to_hex())
}
fn commit(bytes: &[u8]) -> Option<[u8;COMMIT_LEN]> {