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
6d5cd6ff
Commit
6d5cd6ff
authored
Apr 16, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor out syncing of git repo
parent
1ff02427
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
trans/models.py
trans/models.py
+10
-1
No files found.
trans/models.py
View file @
6d5cd6ff
...
@@ -380,12 +380,21 @@ class SubProject(models.Model):
...
@@ -380,12 +380,21 @@ class SubProject(models.Model):
# Remove possible encoding part
# Remove possible encoding part
return
code
.
split
(
'.'
)[
0
]
return
code
.
split
(
'.'
)[
0
]
def
save
(
self
,
*
args
,
**
kwargs
):
def
sync_git_repo
(
self
):
'''
Brings git repo in sync with current model.
'''
self
.
configure_repo
()
self
.
configure_repo
()
self
.
configure_branch
()
self
.
configure_branch
()
self
.
commit_pending
()
self
.
commit_pending
()
self
.
update_branch
()
self
.
update_branch
()
def
clean
(
self
):
self
.
sync_git_repo
()
def
save
(
self
,
*
args
,
**
kwargs
):
self
.
sync_git_repo
()
super
(
SubProject
,
self
).
save
(
*
args
,
**
kwargs
)
super
(
SubProject
,
self
).
save
(
*
args
,
**
kwargs
)
self
.
create_translations
()
self
.
create_translations
()
...
...
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