public inbox for gentoo-releng@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-releng] [PATCH] Add .git folder to rsync excludes in snapshot.py
@ 2018-05-14 14:24 M. J. Everitt
  0 siblings, 0 replies; only message in thread
From: M. J. Everitt @ 2018-05-14 14:24 UTC (permalink / raw
  To: gentoo-releng


[-- 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 --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-14 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-14 14:24 [gentoo-releng] [PATCH] Add .git folder to rsync excludes in snapshot.py M. J. Everitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox