From ab3f69fe6e97adc711c456dfae48c35fc00537e7 Mon Sep 17 00:00:00 2001 From: Sam Reis Date: Mon, 12 Feb 2018 14:33:17 +1100 Subject: [PATCH] use HEAD rather than master when retrieving files from repo fixes #7 --- src/interactors/github.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interactors/github.rs b/src/interactors/github.rs index a3e95cd..386e5cb 100644 --- a/src/interactors/github.rs +++ b/src/interactors/github.rs @@ -16,7 +16,7 @@ pub fn retrieve_file_at_path(service: S, repo_path: &RepoPath, path: &Relativ where S: Service { let path_str: &str = path.as_ref(); - let uri_future = format!("{}/{}/{}/master/{}", + let uri_future = format!("{}/{}/{}/HEAD/{}", GITHUB_USER_CONTENT_BASE_URI, repo_path.qual.as_ref(), repo_path.name.as_ref(),