summaryrefslogtreecommitdiffstats
path: root/bin/git-debian-add
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-04 15:52:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-04 15:52:53 +0000
commit90a53c18354ca072f8d1a2fb326f149ad8ee061b (patch)
tree1ec2f73f7643c5274f5334c1970ade9c820b94bb /bin/git-debian-add
parentUpdating. (diff)
downloadprogress-linux-tools-90a53c18354ca072f8d1a2fb326f149ad8ee061b.tar.xz
progress-linux-tools-90a53c18354ca072f8d1a2fb326f149ad8ee061b.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'bin/git-debian-add')
-rwxr-xr-xbin/git-debian-add7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/git-debian-add b/bin/git-debian-add
index 06e25b9..a14b9e5 100755
--- a/bin/git-debian-add
+++ b/bin/git-debian-add
@@ -20,6 +20,13 @@ HASH="${2}"
chmod 0755 debian/rules
+if [ -e .gitattributes ]
+then
+ ( cat .gitattributes | grep -v 'filter=lfs' > .gitattributes.tmp ) || true
+ rm -f .gitattributes
+ mv .gitattributes.tmp .gitattributes
+fi
+
git add -A -f
git commit -a -s -m "Adding ${MODE} version ${VERSION}." ${GIT_OPTIONS}
git-${MODE}-tag ${VERSION} ${HASH}