Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  builtin/init-db.c: eliminate -Wformat warning on Solaris
  • Loading branch information
Junio C Hamano committed Dec 21, 2011
2 parents 8d68493 + 97f261b commit 3daff7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/init-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static void separate_git_dir(const char *git_dir)
else if (S_ISDIR(st.st_mode))
src = git_link;
else
die(_("unable to handle file type %d"), st.st_mode);
die(_("unable to handle file type %d"), (int)st.st_mode);

if (rename(src, git_dir))
die_errno(_("unable to move %s to %s"), src, git_dir);
Expand Down

0 comments on commit 3daff7c

Please sign in to comment.