Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
devflow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
devflow
Commits
3adc2bee
Commit
3adc2bee
authored
12 years ago
by
Christos Stavrakakis
Browse files
Options
Downloads
Plain Diff
Merge branch 'release-0.10'
parents
06071d10
b78d6238
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devflow/autopkg.py
+1
-0
1 addition, 0 deletions
devflow/autopkg.py
devflow/utils.py
+8
-0
8 additions, 0 deletions
devflow/utils.py
with
9 additions
and
0 deletions
devflow/autopkg.py
+
1
−
0
View file @
3adc2bee
...
@@ -166,6 +166,7 @@ def main():
...
@@ -166,6 +166,7 @@ def main():
# Get current branch name and type and check if it is a valid one
# Get current branch name and type and check if it is a valid one
branch
=
original_repo
.
head
.
reference
.
name
branch
=
original_repo
.
head
.
reference
.
name
branch
=
utils
.
undebianize
(
branch
)
branch_type_str
=
utils
.
get_branch_type
(
branch
)
branch_type_str
=
utils
.
get_branch_type
(
branch
)
if
branch_type_str
not
in
BRANCH_TYPES
.
keys
():
if
branch_type_str
not
in
BRANCH_TYPES
.
keys
():
...
...
This diff is collapsed.
Click to expand it.
devflow/utils.py
+
8
−
0
View file @
3adc2bee
...
@@ -184,3 +184,11 @@ def get_branch_type(branch_name):
...
@@ -184,3 +184,11 @@ def get_branch_type(branch_name):
def
version_to_tag
(
version
):
def
version_to_tag
(
version
):
return
version
.
replace
(
"
~
"
,
""
)
return
version
.
replace
(
"
~
"
,
""
)
def
undebianize
(
branch
):
if
branch
==
"
debian
"
:
return
"
master
"
elif
branch
.
startswith
(
"
debian-
"
):
return
branch
.
replace
(
"
debian-
"
,
""
)
else
:
return
branch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment