Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
42c721e8
Commit
42c721e8
authored
Sep 05, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some uneeded translation strings in git_export
parent
5fc4e02f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cms/djangoapps/contentstore/git_export_utils.py
+5
-5
No files found.
cms/djangoapps/contentstore/git_export_utils.py
View file @
42c721e8
...
@@ -57,9 +57,9 @@ def cmd_log(cmd, cwd):
...
@@ -57,9 +57,9 @@ def cmd_log(cmd, cwd):
command doesn't return 0, and returns the command's output.
command doesn't return 0, and returns the command's output.
"""
"""
output
=
subprocess
.
check_output
(
cmd
,
cwd
=
cwd
,
stderr
=
subprocess
.
STDOUT
)
output
=
subprocess
.
check_output
(
cmd
,
cwd
=
cwd
,
stderr
=
subprocess
.
STDOUT
)
log
.
debug
(
_
(
'Command was: {0!r}. '
log
.
debug
(
'Command was: {0!r}. '
'Working directory was: {1!r}'
.
format
(
' '
.
join
(
cmd
),
cwd
)
))
'Working directory was: {1!r}'
.
format
(
' '
.
join
(
cmd
),
cwd
))
log
.
debug
(
_
(
'Command output was: {0!r}'
.
format
(
output
)
))
log
.
debug
(
'Command output was: {0!r}'
.
format
(
output
))
return
output
return
output
...
@@ -95,8 +95,8 @@ def export_to_git(course_id, repo, user='', rdir=None):
...
@@ -95,8 +95,8 @@ def export_to_git(course_id, repo, user='', rdir=None):
rdirp
=
'{0}/{1}'
.
format
(
GIT_REPO_EXPORT_DIR
,
rdir
)
rdirp
=
'{0}/{1}'
.
format
(
GIT_REPO_EXPORT_DIR
,
rdir
)
branch
=
None
branch
=
None
if
os
.
path
.
exists
(
rdirp
):
if
os
.
path
.
exists
(
rdirp
):
log
.
info
(
_
(
'Directory already exists, doing a git reset and pull '
log
.
info
(
'Directory already exists, doing a git reset and pull '
'instead of git clone.'
)
)
'instead of git clone.'
)
cwd
=
rdirp
cwd
=
rdirp
# Get current branch
# Get current branch
cmd
=
[
'git'
,
'symbolic-ref'
,
'--short'
,
'HEAD'
]
cmd
=
[
'git'
,
'symbolic-ref'
,
'--short'
,
'HEAD'
]
...
...
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