Skip to content
Snippets Groups Projects
Commit d773fa0f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Avoid |repo info| when cleaning projects"

parents f8015763 bd247029
No related branches found
No related tags found
No related merge requests found
......@@ -73,8 +73,7 @@ __abandon_branch()
return 1
fi
fi
local currentRev=$(${REPO} info -l . | sed -ne 's/^Current revision: \(\w*\)$/\1/p')
git reset --hard $currentRev
git reset --hard HEAD
git clean -dfx
${REPO} abandon b2g_autogen_ephemeral_branch .
fi
......@@ -237,8 +236,7 @@ __patch_tree()
fi
fi
# Ensure the project is clean before applying patches to it
local currentRev=$(${REPO} info -l . | sed -ne 's/^Current revision: \(\w*\)$/\1/p')
git reset --hard $currentRev
git reset --hard HEAD
git clean -dfx
declare -a PATCHNAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment