Skip to content

Commit b476903

Browse files
author
Bruce Haley
committed
Revert to before removing history.
1 parent b094ff8 commit b476903

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

scripts/PushBitsToGithub.ps1

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ Get-Childitem -Recurse | Remove-Item -Force -Recurse
2929
Write-Host "Copying the new files from $newFilesPath to $repoRootPath"
3030
Copy-Item $newFilesPath/*.* -Destination $repoRootPath -Recurse
3131

32-
Write-Host "Remove the git history"
33-
# Remove the current .git folder
34-
Remove-Item -Recurse -Force .git
35-
# Reconstruct the repo
36-
git init
37-
3832
Write-Host "git add"
3933
git add .
4034
git add -u
@@ -52,12 +46,8 @@ if ($result -eq $null) {
5246
}
5347
Write-Host 'git commit -m...'
5448
git commit -m "Automated push from build $Env:Build_BuildNumber"
55-
56-
#Write-Host 'git remote add...'
57-
#git remote add origin "https://github.com/Microsoft/BotFramework-WebChat/tree/$branchName"
58-
5949
Write-Host "git push origin $branchName"
60-
git push -u --force origin $branchName
50+
git push origin $branchName
6151

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

0 commit comments

Comments
 (0)