Skip to content

Commit cfd30af

Browse files
Merge branch 'master' into patch-2-merge-strategy-temp
2 parents 4aa47e7 + 6cf71ee commit cfd30af

File tree

9 files changed

+26
-18
lines changed

9 files changed

+26
-18
lines changed

integrations/gitea-repositories-meta/user2/repo20.git/hooks/post-receive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hookname=$(basename $0)
55
GIT_DIR=${GIT_DIR:-$(dirname $0)}
66

77
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
8-
test -x "${hook}" || continue
8+
test -x "${hook}" && test -f "${hook}" || continue
99
echo "${data}" | "${hook}"
1010
exitcodes="${exitcodes} $?"
1111
done

integrations/gitea-repositories-meta/user2/repo20.git/hooks/pre-receive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hookname=$(basename $0)
55
GIT_DIR=${GIT_DIR:-$(dirname $0)}
66

77
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
8-
test -x "${hook}" || continue
8+
test -x "${hook}" && test -f "${hook}" || continue
99
echo "${data}" | "${hook}"
1010
exitcodes="${exitcodes} $?"
1111
done

integrations/gitea-repositories-meta/user2/repo20.git/hooks/update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ hookname=$(basename $0)
44
GIT_DIR=${GIT_DIR:-$(dirname $0)}
55

66
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
7-
test -x "${hook}" || continue
7+
test -x "${hook}" && test -f "${hook}" || continue
88
"${hook}" $1 $2 $3
99
exitcodes="${exitcodes} $?"
1010
done

integrations/gitea-repositories-meta/user27/template1.git/hooks/post-receive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hookname=$(basename $0)
55
GIT_DIR=${GIT_DIR:-$(dirname $0)}
66

77
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
8-
test -x "${hook}" || continue
8+
test -x "${hook}" && test -f "${hook}" || continue
99
echo "${data}" | "${hook}"
1010
exitcodes="${exitcodes} $?"
1111
done

integrations/gitea-repositories-meta/user27/template1.git/hooks/pre-receive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hookname=$(basename $0)
55
GIT_DIR=${GIT_DIR:-$(dirname $0)}
66

77
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
8-
test -x "${hook}" || continue
8+
test -x "${hook}" && test -f "${hook}" || continue
99
echo "${data}" | "${hook}"
1010
exitcodes="${exitcodes} $?"
1111
done

integrations/gitea-repositories-meta/user27/template1.git/hooks/update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ hookname=$(basename $0)
44
GIT_DIR=${GIT_DIR:-$(dirname $0)}
55

66
for hook in ${GIT_DIR}/hooks/${hookname}.d/*; do
7-
test -x "${hook}" || continue
7+
test -x "${hook}" && test -f "${hook}" || continue
88
"${hook}" $1 $2 $3
99
exitcodes="${exitcodes} $?"
1010
done

modules/repository/hooks.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ func createDelegateHooks(repoPath string) (err error) {
2929
var (
3030
hookNames = []string{"pre-receive", "update", "post-receive"}
3131
hookTpls = []string{
32-
fmt.Sprintf("#!/usr/bin/env %s\ndata=$(cat)\nexitcodes=\"\"\nhookname=$(basename $0)\nGIT_DIR=${GIT_DIR:-$(dirname $0)}\n\nfor hook in ${GIT_DIR}/hooks/${hookname}.d/*; do\ntest -x \"${hook}\" || continue\necho \"${data}\" | \"${hook}\"\nexitcodes=\"${exitcodes} $?\"\ndone\n\nfor i in ${exitcodes}; do\n[ ${i} -eq 0 ] || exit ${i}\ndone\n", setting.ScriptType),
33-
fmt.Sprintf("#!/usr/bin/env %s\nexitcodes=\"\"\nhookname=$(basename $0)\nGIT_DIR=${GIT_DIR:-$(dirname $0)}\n\nfor hook in ${GIT_DIR}/hooks/${hookname}.d/*; do\ntest -x \"${hook}\" || continue\n\"${hook}\" $1 $2 $3\nexitcodes=\"${exitcodes} $?\"\ndone\n\nfor i in ${exitcodes}; do\n[ ${i} -eq 0 ] || exit ${i}\ndone\n", setting.ScriptType),
34-
fmt.Sprintf("#!/usr/bin/env %s\ndata=$(cat)\nexitcodes=\"\"\nhookname=$(basename $0)\nGIT_DIR=${GIT_DIR:-$(dirname $0)}\n\nfor hook in ${GIT_DIR}/hooks/${hookname}.d/*; do\ntest -x \"${hook}\" || continue\necho \"${data}\" | \"${hook}\"\nexitcodes=\"${exitcodes} $?\"\ndone\n\nfor i in ${exitcodes}; do\n[ ${i} -eq 0 ] || exit ${i}\ndone\n", setting.ScriptType),
32+
fmt.Sprintf("#!/usr/bin/env %s\ndata=$(cat)\nexitcodes=\"\"\nhookname=$(basename $0)\nGIT_DIR=${GIT_DIR:-$(dirname $0)}\n\nfor hook in ${GIT_DIR}/hooks/${hookname}.d/*; do\ntest -x \"${hook}\" && test -f \"${hook}\" || continue\necho \"${data}\" | \"${hook}\"\nexitcodes=\"${exitcodes} $?\"\ndone\n\nfor i in ${exitcodes}; do\n[ ${i} -eq 0 ] || exit ${i}\ndone\n", setting.ScriptType),
33+
fmt.Sprintf("#!/usr/bin/env %s\nexitcodes=\"\"\nhookname=$(basename $0)\nGIT_DIR=${GIT_DIR:-$(dirname $0)}\n\nfor hook in ${GIT_DIR}/hooks/${hookname}.d/*; do\ntest -x \"${hook}\" && test -f \"${hook}\" || continue\n\"${hook}\" $1 $2 $3\nexitcodes=\"${exitcodes} $?\"\ndone\n\nfor i in ${exitcodes}; do\n[ ${i} -eq 0 ] || exit ${i}\ndone\n", setting.ScriptType),
34+
fmt.Sprintf("#!/usr/bin/env %s\ndata=$(cat)\nexitcodes=\"\"\nhookname=$(basename $0)\nGIT_DIR=${GIT_DIR:-$(dirname $0)}\n\nfor hook in ${GIT_DIR}/hooks/${hookname}.d/*; do\ntest -x \"${hook}\" && test -f \"${hook}\" || continue\necho \"${data}\" | \"${hook}\"\nexitcodes=\"${exitcodes} $?\"\ndone\n\nfor i in ${exitcodes}; do\n[ ${i} -eq 0 ] || exit ${i}\ndone\n", setting.ScriptType),
3535
}
3636
giteaHookTpls = []string{
3737
fmt.Sprintf("#!/usr/bin/env %s\n\"%s\" hook --config='%s' pre-receive\n", setting.ScriptType, setting.AppPath, setting.CustomConf),

web_src/less/_base.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,10 @@ i.icon.centerlock {
10371037
top: 1.45em;
10381038
}
10391039

1040+
.ui.label {
1041+
padding: .3em .5em;
1042+
}
1043+
10401044
.ui.label > .detail .icons {
10411045
margin-right: .25em;
10421046
}
@@ -1216,3 +1220,11 @@ i.icon.centerlock {
12161220
.ui.attached.segment + .ui.attached.header {
12171221
margin-top: 1rem;
12181222
}
1223+
1224+
/* limit width of all direct dropdown menu children */
1225+
/* https://github.com/go-gitea/gitea/pull/10835 */
1226+
.dropdown > .menu > * {
1227+
max-width: 300px;
1228+
overflow-x: hidden;
1229+
text-overflow: ellipsis;
1230+
}

web_src/less/_repository.less

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,17 @@
155155
&.labels {
156156
.label-filter .menu .info {
157157
display: inline-block;
158-
padding: 9px 7px 7px 7px;
159-
text-align: center;
158+
padding: .5rem .25rem;
160159
border-bottom: 1px solid #cccccc;
161160
font-size: 12px;
161+
width: 100%;
162+
white-space: nowrap;
163+
text-align: center;
162164

163165
code {
164166
border: 1px solid #cccccc;
165167
border-radius: 3px;
166-
padding: 3px 2px 1px 2px;
168+
padding: 1px 2px;
167169
font-size: 11px;
168170
}
169171
}
@@ -187,12 +189,6 @@
187189
}
188190

189191
.select-label {
190-
.item {
191-
max-width: 250px;
192-
overflow: hidden;
193-
text-overflow: ellipsis;
194-
}
195-
196192
.desc {
197193
padding-left: 16px;
198194
}

0 commit comments

Comments
 (0)