Merge pull request #4020 from novalis/rebase-detached

git_rebase_init: correctly handle detached HEAD
diff --git a/include/git2/remote.h b/include/git2/remote.h
index c459f42..53c4aee 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -569,7 +569,7 @@
  * Initializes a `git_fetch_options` with default values. Equivalent to
  * creating an instance with GIT_FETCH_OPTIONS_INIT.
  *
- * @param opts the `git_push_options` instance to initialize.
+ * @param opts the `git_fetch_options` instance to initialize.
  * @param version the version of the struct; you should pass
  *        `GIT_FETCH_OPTIONS_VERSION` here.
  * @return Zero on success; -1 on failure.
diff --git a/src/win32/w32_util.h b/src/win32/w32_util.h
index 2e475e5..784a7a0 100644
--- a/src/win32/w32_util.h
+++ b/src/win32/w32_util.h
@@ -174,7 +174,7 @@
 			/* st_size gets the UTF-8 length of the target name, in bytes,
 			 * not counting the NULL terminator */
 			if ((st->st_size = git__utf16_to_8(NULL, 0, target)) < 0) {
-				giterr_set(GITERR_OS, "Could not convert reparse point name for '%s'", path);
+				giterr_set(GITERR_OS, "Could not convert reparse point name for '%ls'", path);
 				return -1;
 			}
 		}