Re: [PATCH/RFC 2/3] Teach mv to move submodules using a gitfile
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 9, 2013, 23:08 UTC
- Message-ID
- <7vwqsbnvxz.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <515C8987.2060804@web.de>
Jens Lehmann <Jens.Lehmann@web.de> writes:
Show 9 quoted lines
> diff --git a/submodule.c b/submodule.c
> index 975bc87..eba9b42 100644
> --- a/submodule.c
> +++ b/submodule.c
> @@ -1001,3 +1001,67 @@ int merge_submodule(unsigned char result[20], const char *path,
> ...
> + if (!fp)
> + die(_("Could not create git link %s"), gitfile_name.buf);
> + fprintf(fp, gitfile_content.buf);Perhaps.
fprintf(fp, "%s", gitfile_content.buf);