Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
c9953aa9
Commit
c9953aa9
authored
10 years ago
by
Michael Vines
Committed by
Gerrit - the friendly Code Review server
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
'clean' with 'force'
Change-Id: I0707c907557629f5897646a2a01efdfd66f0726e
parent
753fb1fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vendorsetup.sh
+4
-4
4 additions, 4 deletions
vendorsetup.sh
with
4 additions
and
4 deletions
vendorsetup.sh
+
4
−
4
View file @
c9953aa9
...
...
@@ -63,7 +63,7 @@ __abandon_branch()
local
FORCE
=
"
$2
"
if
[[
-n
"
$(
git branch
--list
b2g_autogen_ephemeral_branch
)
"
]]
;
then
if
[[
"
$FORCE
"
!=
"
yes
"
&&
$(
whoami
)
!=
"lnxbuild"
]]
;
then
if
[[
"
$FORCE
"
!=
"
force
"
&&
$(
whoami
)
!=
"lnxbuild"
]]
;
then
if
[[
-n
$(
git status
--porcelain
)
]]
;
then
echo
echo
"ERROR: Uncommitted changes found in
$branch
/"
...
...
@@ -127,10 +127,10 @@ __patch_tree()
fi
FORCE
=
if
[[
$1
==
"force"
]]
;
then
FORCE
=
yes
FORCE
=
force
fi
if
[[
"
$LASTMD5SUM
"
!=
"
$MD5SUM
"
||
"
yes
"
==
"
$FORCE
"
]]
;
then
if
[[
"
$LASTMD5SUM
"
!=
"
$MD5SUM
"
||
"
force
"
==
"
$FORCE
"
]]
;
then
branch
()
{
[[
-d
$1
]]
||
return
1
...
...
@@ -308,7 +308,7 @@ if [[ -z $1 ]]; then
__patch_tree
else
case
$1
in
clean
)
__abandon_tree
;;
clean
)
__abandon_tree
force
;;
force
)
__patch_tree force
;;
np
)
echo
"Skipping patch tree step..."
;;
*
)
[[
-z
"
$PS1
"
]]
&&
__patch_tree
||
echo
Error: Unknown
command
:
$1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment