]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
spec: Delete .git after applying patches
authorCole Robinson <crobinso@redhat.com>
Tue, 6 Oct 2015 19:54:47 +0000 (15:54 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 6 Oct 2015 19:54:47 +0000 (15:54 -0400)
commit62ff210e5d6542bda3f25ed5e96c5088a840ce1b
tree45eb097b7af2bca85aa27aae35da33b9f33d12c6
parentbd6ae7b8abdfbd70fc1fbdacdb83c4dcd3dcd1c2
spec: Delete .git after applying patches

I'm hitting this little annoyance in fedora's package repo:

$ fedpkg prep
Downloading libvirt-1.2.20.tar.gz
...
+ /usr/bin/gzip -dc /home/crobinso/src/fedora/libvirt/libvirt-1.2.20.tar.gz
$ git clean -xdf
Removing libvirt-1.2.20.tar.gz
Skipping repository libvirt-1.2.20/

We git-ify the libvirt directory as part of applying patches in the spec
file, but 'git clean' will ignore subfolders that appear to be standalone
git repos.

Let's just delete the .git directory after we're done with it.
libvirt.spec.in