Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mahara-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scripts
mahara-scripts
Commits
06cbdaad
Commit
06cbdaad
authored
Apr 11, 2016
by
Aaron Wells
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing some backslashes in the grep command to check git remotes for branches
parent
b6ead900
Pipeline
#49
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mahara-langpacks/langpacks.pl
mahara-langpacks/langpacks.pl
+3
-1
No files found.
mahara-langpacks/langpacks.pl
View file @
06cbdaad
...
...
@@ -169,7 +169,9 @@ foreach my $lang (@langkeys) {
chdir
$gitlangdir
;
system
"
git fetch --quiet
";
# @UPDATE when there is a new series
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.10_STABLE|15.04_STABLE|15.10_STABLE|16.04_STABLE\)$"
';
# When adding a new branch name here, make sure to preface it with
# "\|", that is, a backslash, then a pipe.
my
$remotebranchcmd
=
'
git branch -r | grep -v "HEAD" | grep "origin\/\(master\|1.10_STABLE\|15.04_STABLE\|15.10_STABLE\|16.04_STABLE\)$"
';
my
$remotebranches
=
`
$remotebranchcmd
`;
$remotebranches
=~
s/\s+/ /
;
@branches
=
();
...
...
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