]> git.proxmox.com Git - cargo.git/commitdiff
Fix how GitHub is written
authorDale Wijnand <dale.wijnand@gmail.com>
Tue, 17 Apr 2018 20:14:41 +0000 (22:14 +0200)
committerDale Wijnand <dale.wijnand@gmail.com>
Tue, 17 Apr 2018 20:15:27 +0000 (22:15 +0200)
README.md
src/cargo/sources/git/source.rs
src/cargo/sources/git/utils.rs

index fe87f154e72ee4ccd67a17be8f63af5f3991e268..9a29fda85b9264efc5a76e707b735d271514fd64 100644 (file)
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ Cargo releases coincide with Rust releases.
 
 Found a bug? We'd love to know about it!
 
-Please report all issues on the github [issue tracker][issues].
+Please report all issues on the GitHub [issue tracker][issues].
 
 [issues]: https://github.com/rust-lang/cargo/issues
 
index 75573d38b22d76c265bde4f07372dfefccccfb99..98e42310171e3c23b50962c13c197a80f9635e6e 100644 (file)
@@ -89,7 +89,7 @@ pub fn canonicalize_url(url: &Url) -> CargoResult<Url> {
         url.path_segments_mut().unwrap().pop_if_empty();
     }
 
-    // HACKHACK: For github URL's specifically just lowercase
+    // HACKHACK: For GitHub URL's specifically just lowercase
     // everything.  GitHub treats both the same, but they hash
     // differently, and we're gonna be hashing them. This wants a more
     // general solution, and also we're almost certainly not using the
index 61d28a14376566baa91da143d348273372cd966b..c6663342be6498b97d23a0d799bd83e603c48ea7 100644 (file)
@@ -671,12 +671,12 @@ pub fn fetch(
         bail!("can't update a git repository in the offline mode")
     }
 
-    // If we're fetching from github, attempt github's special fast path for
+    // If we're fetching from GitHub, attempt GitHub's special fast path for
     // testing if we've already got an up-to-date copy of the repository
     if url.host_str() == Some("github.com") {
         if let Ok(oid) = repo.refname_to_id("refs/remotes/origin/master") {
             let mut handle = config.http()?.borrow_mut();
-            debug!("attempting github fast path for {}", url);
+            debug!("attempting GitHub fast path for {}", url);
             if github_up_to_date(&mut handle, url, &oid) {
                 return Ok(());
             } else {
@@ -821,7 +821,7 @@ fn reinitialize(repo: &mut git2::Repository) -> CargoResult<()> {
 }
 
 /// Updating the index is done pretty regularly so we want it to be as fast as
-/// possible. For registries hosted on github (like the crates.io index) there's
+/// possible. For registries hosted on GitHub (like the crates.io index) there's
 /// a fast path available to use [1] to tell us that there's no updates to be
 /// made.
 ///
@@ -844,7 +844,7 @@ fn github_up_to_date(handle: &mut Easy, url: &Url, oid: &git2::Oid) -> bool {
         })
     }
 
-    // This expects github urls in the form `github.com/user/repo` and nothing
+    // This expects GitHub urls in the form `github.com/user/repo` and nothing
     // else
     let mut pieces = try!(url.path_segments());
     let username = try!(pieces.next());