1. 06 Jan, 2013 3 commits
    • Allow to clone repositories that don't have a `master` branch · 2ba6f3c7
      Before this, we error out from `reference_matches_remote_head` if the
      reference we're searching for does not exist.
      Since we explicitly check if master is existing in `update_head_to_remote`
      and error out if it doesn't, a repository without master branch could
      not be cloned.
      In fact this was later clobbered by what is fixed in #1194.
      
      However, this patch introduces a `found` member in `head_info` and sets
      it accordingly. That also saves us from checking the string length of
      `branchname` a few times.
      Sascha Cunz committed
    • Merge pull request #1194 from libgit2/dont-clobber-errors · f9b4adbe
      git_mwindow_file_deregister() shouldn't return errors
      Vicent Martí committed
    • git_mwindow_file_deregister() shouldn't return errors · f9b55bcb
      As a function that appears to only be called on error paths, I don't
      think it makes sense for it to return an error, or clobber the global
      giterr. Note that no existing callsites actually check the return
      code.
      
      In my own application, there are errors where the real error ends
      up being hidden, as git_mwindow_file_deregister() clobbers the
      global giterr. I'm not sure this error is even relevant?
      Scott J. Goldman committed
  2. 05 Jan, 2013 9 commits
  3. 04 Jan, 2013 28 commits