mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 04:40:13 +01:00
contrib/makerepo: add default gitignore pattern to makerepo.gitignore
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
3c7675af14
commit
2358aeacb0
1 changed files with 5 additions and 0 deletions
|
|
@ -116,6 +116,11 @@ if [[ -f ./.git/makerepo.gitignore ]]; then
|
|||
/bin/cp ./.git/makerepo.gitignore ./
|
||||
fi
|
||||
|
||||
DEFAULT_BACKUP_PATTERN='*.[0-9][0-9][0-9][0-9][-.]*.orig'
|
||||
if ! grep -q -e "$DEFAULT_BACKUP_PATTERN" "./makerepo.gitignore" ; then
|
||||
echo "$DEFAULT_BACKUP_PATTERN" >> ./makerepo.gitignore
|
||||
fi
|
||||
|
||||
pushd "$DIRNAME"
|
||||
git init .
|
||||
# if you have a local clone of upstream, symlink it as ../.git/local.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue