Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
devflow
Commits
5a29a44e
Commit
5a29a44e
authored
Jan 17, 2013
by
Christos Stavrakakis
Browse files
Check that current branch is allowed
parent
b1aa3d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
devflow/autopkg.py
View file @
5a29a44e
...
...
@@ -171,6 +171,11 @@ def main():
print
"Latest Reflog entry is %s"
%
reflog_hexsha
branch
=
repo
.
head
.
reference
.
name
allowed_branches
=
", "
.
join
(
x
for
x
in
BRANCH_TYPES
.
keys
())
if
branch
.
split
(
'-'
)[
0
]
not
in
allowed_branches
:
raise
ValueError
(
"Malformed branch name '%s', cannot classify as"
" one of %s"
%
(
branch
,
allowed_branches
))
brnorm
=
versioning
.
normalize_branch_name
(
branch
)
btypestr
=
versioning
.
get_branch_type
(
brnorm
)
...
...
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