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
656a132d
Commit
656a132d
authored
Feb 05, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
e93d01d1
7e024cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
weblate/trans/models.py
weblate/trans/models.py
+8
-7
No files found.
weblate/trans/models.py
View file @
656a132d
...
...
@@ -775,11 +775,11 @@ class SubProject(models.Model):
# Push after possible merge
if
self
.
git_needs_push
()
and
self
.
subproject
.
project
.
push_on_commit
:
self
.
subproject
.
do_push
(
force_commit
=
False
)
self
.
subproject
.
do_push
(
force_commit
=
False
,
do_update
=
False
)
return
ret
def
do_push
(
self
,
request
=
None
,
force_commit
=
True
):
def
do_push
(
self
,
request
=
None
,
force_commit
=
True
,
do_update
=
True
):
'''
Wrapper for pushing changes to remote repo.
'''
...
...
@@ -802,12 +802,13 @@ class SubProject(models.Model):
if
not
self
.
git_needs_push
():
return
False
# Update the repo
self
.
do_update
(
request
)
if
do_update
:
# Update the repo
self
.
do_update
(
request
)
# Were all changes merged?
if
self
.
git_needs_merge
():
return
False
# Were all changes merged?
if
self
.
git_needs_merge
():
return
False
# Do actual push
try
:
...
...
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