Skip to content

Commit 988a936

Browse files
committed
Add comment
1 parent 8e07030 commit 988a936

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backup_github_repositories.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ Write-Message "Cloning $($repositories.Count) repositories (~${totalSizeInMegaby
165165
# Clone each repository into the backup directory.
166166
ForEach ($repository in $repositories) {
167167

168+
# The repository directory is suffixed with a ".git" to indicate a bare repository.
168169
Backup-GitHubRepository -FullName $repository.full_name `
169-
-Directory $(Join-Path -Path $backupDirectory -ChildPath "${repository.name}.git)
170+
-Directory $(Join-Path -Path $backupDirectory -ChildPath "$($repository.name).git")
170171
}
171172

172173
$stopwatch.Stop()

0 commit comments

Comments
 (0)