|
|
@ -51,8 +51,9 @@ impl<'a, C: CommandRunner> Symbol for GitCheckout<'a, C> { |
|
|
|
};
|
|
|
|
}
|
|
|
|
try!(self._run_in_target_repo(&["fetch", self.source, self.branch]));
|
|
|
|
let fetch_head = try!(self._run_in_target_repo(&["rev-parse", "FETCH_HEAD"]));
|
|
|
|
let head = try!(self._run_in_target_repo(&["rev-parse", "HEAD"]));
|
|
|
|
// git rev-list resolves tag objects
|
|
|
|
let fetch_head = try!(self._run_in_target_repo(&["rev-list", "-1", "FETCH_HEAD"]));
|
|
|
|
let head = try!(self._run_in_target_repo(&["rev-list", "-1", "HEAD"]));
|
|
|
|
Ok(fetch_head == head)
|
|
|
|
}
|
|
|
|
|
|
|
|