Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8c5e8785
Kaydet (Commit)
8c5e8785
authored
Şub 12, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
git hooks: reject suspicious fdo references
Change-Id: If2302adb662bd2b0d32bacdf9cdc3c0278b86de8
üst
5d388443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
commit-msg
.git-hooks/commit-msg
+7
-0
No files found.
.git-hooks/commit-msg
Dosyayı görüntüle @
8c5e8785
...
...
@@ -45,6 +45,13 @@ if [ "`head -n 1 $1 | wc -c`" -gt 79 ] ; then
abort
"
$1
"
"The first line is too long, please try to fit into 79 characters."
fi
fdo_regex
=
'fdo#[0-9]+'
if
egrep
-q
"
$fdo_regex
"
$1
;
then
if
[
"
`
head
-n
1
$1
|egrep
-o
"
$fdo_regex
"
|sed
's/fdo#//'
`
"
-gt
88775
]
;
then
abort
"
$1
"
"The first line contains a suspicious fdo# rereference, did you mean tdf#?"
fi
fi
# ...and that it does not continue on the second line
if
[
"
`
wc
-l
<
$1
`
"
-gt
1
-a
-n
"
`
head
-n
2
$1
|
tail
-n
1 |
sed
's/^#.*//'
`
"
]
;
then
abort
"
$1
"
"The second line is not empty - maybe the first line continues there?"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment