Skip to content

Commit a28858b

Browse files
authored
Merge pull request #75 from WeAreInSpark/fix-dot-files
fix: Add support for files beginning with a dot
2 parents 002339c + 0d913e0 commit a28858b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AzureDevOpsPowerShell/Public/Api/Git/Pushes/Add-FilesToRepo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function Add-FilesToRepo {
4949
process {
5050

5151
$changes = @()
52-
$files = Get-ChildItem -Path $Path -Recurse -File
52+
$files = Get-ChildItem -Path $Path -Recurse -File -Force | Where-Object {$_.FullName -notmatch ".git"}
5353
foreach ($file in $files) {
5454

5555
if (($file.Extension -in '.png', '.svg, .jpg', '.jpeg')) {

0 commit comments

Comments
 (0)