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
2c1e9512
Kaydet (Commit)
2c1e9512
authored
Şub 13, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
git-hooks: recognize multiple bug ids
Change-Id: I6ef51a8ec3215f331d2671074be17f68aa6cd1ce
üst
9d9e4b9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
commit-msg
.git-hooks/commit-msg
+8
-3
No files found.
.git-hooks/commit-msg
Dosyayı görüntüle @
2c1e9512
...
@@ -47,9 +47,12 @@ fi
...
@@ -47,9 +47,12 @@ fi
fdo_regex
=
'fdo#[0-9]+'
fdo_regex
=
'fdo#[0-9]+'
if
egrep
-q
"
$fdo_regex
"
$1
;
then
if
egrep
-q
"
$fdo_regex
"
$1
;
then
if
[
"
`
head
-n
1
$1
|egrep
-o
"
$fdo_regex
"
|sed
's/fdo#//'
`
"
-gt
88775
]
;
then
for
bugid
in
`
head
-n
1
$1
|egrep
-o
"
$fdo_regex
"
|sed
's/fdo#//'
`
abort
"
$1
"
"The first line contains a suspicious fdo# rereference, did you mean tdf#?"
do
fi
if
[
"
`
echo
$bugid
|sed
's/fdo#//'
`
"
-gt
88775
]
;
then
abort
"
$1
"
"The first line contains a suspicious fdo# rereference: 'fdo#
$bugid
', did you mean tdf#?"
fi
done
fi
fi
# ...and that it does not continue on the second line
# ...and that it does not continue on the second line
...
@@ -186,3 +189,5 @@ add_ChangeId
...
@@ -186,3 +189,5 @@ add_ChangeId
exit
0
exit
0
# vi:set shiftwidth=4 expandtab:
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