From: "M. J. Everitt" <m.j.everitt@iee.org>
To: gentoo-releng@lists.gentoo.org
Subject: [gentoo-releng] [PATCH] Add .git folder to rsync excludes in snapshot.py
Date: Mon, 14 May 2018 15:24:56 +0100 [thread overview]
Message-ID: <2f7b73ce-9be1-f51c-1c02-da64d01e157b@iee.org> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 112 bytes --]
Adds an exclude to the rsync command in catalyst/targets/snapshot.py for
git repository's hidden .git folder.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: 0001-Add-.git-folder-to-snapshot-rsync-excludes.patch --]
[-- Type: text/x-patch; name="0001-Add-.git-folder-to-snapshot-rsync-excludes.patch", Size: 770 bytes --]
From 8379e1d7af3a6d0224288a19627394015d837271 Mon Sep 17 00:00:00 2001
From: Michael Everitt <m.j.everitt@iee.org>
Date: Mon, 14 May 2018 15:16:41 +0100
Subject: [PATCH] Add .git folder to snapshot rsync excludes
---
catalyst/targets/snapshot.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/catalyst/targets/snapshot.py b/catalyst/targets/snapshot.py
index 726bc512..607e718e 100644
--- a/catalyst/targets/snapshot.py
+++ b/catalyst/targets/snapshot.py
@@ -59,6 +59,7 @@ class snapshot(TargetBase, GenBase):
'--exclude=/local/',
'--exclude=CVS/',
'--exclude=.svn',
+ '--exclude=.git/',
'--filter=H_**/files/digest-*',
self.settings['portdir'] + '/',
mytmp + '/' + self.settings['repo_name'] + '/'],
--
2.13.0
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
reply other threads:[~2018-05-14 14:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=2f7b73ce-9be1-f51c-1c02-da64d01e157b@iee.org \
--to=m.j.everitt@iee.org \
--cc=gentoo-releng@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox