From: bors Date: Wed, 8 Feb 2017 01:03:17 +0000 (+0000) Subject: Auto merge of #3583 - alexcrichton:fix-tags, r=brson X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~164 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c45c2193d0b4a86f7b782c58a19a43cbb9ce4fe0;p=cargo.git Auto merge of #3583 - alexcrichton:fix-tags, r=brson Handle `rev` being a `tag` Previously if a rev was specified as a tag then we'd trip an assertion because resetting to that tag would reset to the tag that the commit pointed to, which would then cause the head id of the repo to be different than what we thought it was. Instead, we handle the case where a `rev` specification is a tag explicitly by using the tag's target id as the revision that we're going to check out, not the id of the tag itself. Closes #3580 --- c45c2193d0b4a86f7b782c58a19a43cbb9ce4fe0