All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Kohl <bernhard.kohl@nsn.com>
To: Bernhard Kohl <bernhard.kohl@nsn.com>
Cc: mtosatti@redhat.com, qemu-devel@nongnu.org, mst@redhat.com
Subject: [Qemu-devel] Re: [PATCH] make-release: fix mtime for a wider range of git versions
Date: Mon, 15 Nov 2010 18:03:51 +0100	[thread overview]
Message-ID: <4CE167F7.8050709@nsn.com> (raw)
In-Reply-To: <1289821724-24845-1-git-send-email-bernhard.kohl@nsn.com>

Am 15.11.2010 12:48, schrieb Bernhard Kohl:
> With the latest git versions, e.g. 1.7.2.3, git still prints out
> the tag info in addition to the requested format. So let's simply
> fetch the first line from the output.
>
> In addition I use the --pretty option instead of --format which
> is not recognized in very old git versions, e.g. 1.5.5.6.
>
> Tested with git versions 1.5.5.6 and 1.7.2.3.
>
> Signed-off-by: Bernhard Kohl<bernhard.kohl@nsn.com>
>    

Sorry, I sent this to the wrong list. Resent to kvm!

Bernhard

> ---
>   kvm/scripts/make-release |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kvm/scripts/make-release b/kvm/scripts/make-release
> index 56302c3..2d050fc 100755
> --- a/kvm/scripts/make-release
> +++ b/kvm/scripts/make-release
> @@ -51,7 +51,7 @@ cd "$(dirname "$0")"/../..
>   mkdir -p "$(dirname "$tarball")"
>   git archive --prefix="$name/" --format=tar "$commit">  "$tarball"
>
> -mtime=`git show --format=%ct "$commit""^{commit}" --`
> +mtime=`git show --pretty=format:%ct "$commit""^{commit}" -- | head -n 1`
>   tarargs="--owner=root --group=root"
>
>   mkdir -p "$tmpdir/$name"
>    

      reply	other threads:[~2010-11-15 17:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-15 11:48 [Qemu-devel] [PATCH] make-release: fix mtime for a wider range of git versions Bernhard Kohl
2010-11-15 17:03 ` Bernhard Kohl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE167F7.8050709@nsn.com \
    --to=bernhard.kohl@nsn.com \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.