Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
7679575d
Commit
7679575d
authored
Mar 06, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default branch when saving rather than when validating
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
1cf54203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+5
-4
No files found.
weblate/trans/models/subproject.py
View file @
7679575d
...
...
@@ -1098,10 +1098,6 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
_
(
'Unsupported file format: {0}'
).
format
(
self
.
file_format
)
)
# Set default VCS branch if empty
if
self
.
branch
==
''
:
self
.
branch
=
self
.
vcs
.
default_branch
# Validate VCS repo
try
:
self
.
sync_git_repo
(
True
)
...
...
@@ -1150,6 +1146,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
Save wrapper which updates backend repository and regenerates
translation data.
'''
# Set default VCS branch if empty
if
self
.
branch
==
''
:
self
.
branch
=
self
.
vcs
.
default_branch
# Detect if VCS config has changed (so that we have to pull the repo)
changed_git
=
True
changed_setup
=
False
...
...
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