forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afbb6cd
commit a574657
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ foreach ($SyncPath in $Config.SyncPath) | |
Copy-Item -Path $SyncPath -Destination "$TmpFolder/$SyncPath" -Recurse | ||
} | ||
|
||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "azurepowershell" | ||
# git checkout -b "syncToolsFolder-$BranchName" "origin/$BranchName" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "azurepowershell" | ||
git checkout -b "syncToolsFolder-$BranchName" "origin/$BranchName" | ||
|
||
foreach ($UnSyncPath in $Config.UnSyncPath) | ||
{ | ||
|
@@ -29,10 +29,10 @@ foreach ($UnSyncPath in $Config.UnSyncPath) | |
foreach ($SyncPath in $Config.SyncPath) | ||
{ | ||
Remove-Item -Path $SyncPath -Recurse | ||
Copy-Item -Path "$TmpFolder/$UnSyncPath" -Destination $SyncPath -Recurse | ||
# git add $SyncPath | ||
Copy-Item -Path "$TmpFolder/$SyncPath" -Destination $SyncPath -Recurse | ||
git add $SyncPath | ||
} | ||
|
||
# git commit -m "Sync tools folder from main branch to $BranchName branch" | ||
# git remote set-url origin "https://[email protected]/Azure/azure-powershell.git" | ||
# git push origin "syncToolsFolder-$BranchName" --force | ||
git commit -m "Sync tools folder from main branch to $BranchName branch" | ||
git remote set-url origin "https://$GithubToken@github.com/Azure/azure-powershell.git" | ||
git push origin "syncToolsFolder-$BranchName" --force |