{"action":"opened","issue":{"url":"https://api.github.com/repos/tazjin/carnix/issues/7","repository_url":"https://api.github.com/repos/tazjin/carnix","labels_url":"https://api.github.com/repos/tazjin/carnix/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/tazjin/carnix/issues/7/comments","events_url":"https://api.github.com/repos/tazjin/carnix/issues/7/events","html_url":"https://github.com/tazjin/carnix/issues/7","id":329263192,"node_id":"MDU6SXNzdWUzMjkyNjMxOTI=","number":7,"title":"Git repo issues","user":{"login":"jbboehr","id":225601,"node_id":"MDQ6VXNlcjIyNTYwMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/225601?v=4","gravatar_id":"","url":"https://api.github.com/users/jbboehr","html_url":"https://github.com/jbboehr","followers_url":"https://api.github.com/users/jbboehr/followers","following_url":"https://api.github.com/users/jbboehr/following{/other_user}","gists_url":"https://api.github.com/users/jbboehr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbboehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbboehr/subscriptions","organizations_url":"https://api.github.com/users/jbboehr/orgs","repos_url":"https://api.github.com/users/jbboehr/repos","events_url":"https://api.github.com/users/jbboehr/events{/privacy}","received_events_url":"https://api.github.com/users/jbboehr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T00:43:25Z","updated_at":"2018-06-05T00:43:25Z","closed_at":null,"author_association":"NONE","body":"I've been having issues fetching dependencies from git when the url is like: `git+https://github.com/TyOverby/bincode.git?rev=0bc254459489761e2a933a3bba26cba32d515794`\r\n\r\nThe following patch seems to make it work:\r\n\r\n```diff\r\ndiff --git a/src/output.rs b/src/output.rs\r\nindex 4230b8b..8a54e5c 100644\r\n--- a/src/output.rs\r\n+++ b/src/output.rs\r\n@@ -264,9 +264,10 @@ fn cargo_lock_source_type(package: &toml::Value) -> SourceType {\r\n             SourceType::CratesIO\r\n         } else if source.starts_with(\"git+\") {\r\n             let url = source.split_at(4).1;\r\n-            debug!(\"url = {:?}\", url);\r\n             let mut commit = url.split('#');\r\n             if let (Some(url), Some(rev)) = (commit.next(), commit.next()) {\r\n+                let mut url = url.split(\"?\").next().unwrap();\r\n+                debug!(\"url = {:?}\", url);\r\n                 SourceType::Git {\r\n                     url: url.to_string(),\r\n                     rev: rev.to_string(),\r\n```"}}
{"actor":{"display_login":"jbboehr"}}