Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: James Balean <james@balean.com.au>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Restore .git directory in git package downloads
Date: Tue, 18 Apr 2017 23:00:39 -0500	[thread overview]
Message-ID: <1492574439-4617-1-git-send-email-james@balean.com.au> (raw)

Removing the .git directory during package download and caching prevents
Builroot users from making and testing changes to external software
packages using Buildroot. This patch enables users to commit locally,
make patches and contribute back to the projects they are using.

Signed-off-by: James Balean <james@balean.com.au>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 support/download/git | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/support/download/git b/support/download/git
index 056057c..a7f307c 100755
--- a/support/download/git
+++ b/support/download/git
@@ -85,10 +85,6 @@ if [ ${recurse} -eq 1 ]; then
     _git submodule update --init --recursive
 fi
 
-# We do not need the .git dir; we keep other .git files, in case they
-# are the only files in their directory.
-rm -rf .git
-
 popd >/dev/null
 
 # Generate the archive, sort with the C locale so that it is reproducible
-- 
2.7.4

             reply	other threads:[~2017-04-19  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19  4:00 James Balean [this message]
2017-04-19  4:15 ` [Buildroot] [PATCH] Restore .git directory in git package downloads Baruch Siach
2017-04-19 13:01   ` Jan Kundrát
2017-04-19 14:39     ` Andreas Naumann
2017-04-19 20:11       ` Arnout Vandecappelle
2017-04-19 23:37 ` Ricardo Martincoski
     [not found] ` <58f7f1456cc7e_21d33f8c269493f44696f@ultri3.mail>
2017-04-20  3:40   ` Baruch Siach
2017-04-26  3:52     ` James Balean
2017-04-26  4:10       ` Baruch Siach
2017-04-27 17:52         ` Ricardo Martincoski

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=1492574439-4617-1-git-send-email-james@balean.com.au \
    --to=james@balean.com.au \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox