Skip to content

Commit

Permalink
Revert to before removing history.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Haley committed May 1, 2019
1 parent b094ff8 commit b476903
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions scripts/PushBitsToGithub.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ Get-Childitem -Recurse | Remove-Item -Force -Recurse
Write-Host "Copying the new files from $newFilesPath to $repoRootPath"
Copy-Item $newFilesPath/*.* -Destination $repoRootPath -Recurse

Write-Host "Remove the git history"
# Remove the current .git folder
Remove-Item -Recurse -Force .git
# Reconstruct the repo
git init

Write-Host "git add"
git add .
git add -u
Expand All @@ -52,12 +46,8 @@ if ($result -eq $null) {
}
Write-Host 'git commit -m...'
git commit -m "Automated push from build $Env:Build_BuildNumber"

#Write-Host 'git remote add...'
#git remote add origin "https://github.com/Microsoft/BotFramework-WebChat/tree/$branchName"

Write-Host "git push origin $branchName"
git push -u --force origin $branchName
git push origin $branchName

#if ($LASTEXITCODE -eq 0) {
# Write-Host 'Writing Push Location section to the build summary page'
Expand Down

0 comments on commit b476903

Please sign in to comment.