Skip to content

Commit 16507b6

Browse files
committed
Git sync - update description & readme.
1 parent d8129fb commit 16507b6

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

ScriptRunner/Script Synchronization/GitSync/Invoke-GitSparseCheckout.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
Checkout a branch of a Git repository to ScriptRunner Library.
66
If you specifiy SparseDirs, only the given directories will be checked out.
77
If you want to checkout a private repository, you must specify the GitUserCredential.
8+
NOTE:
9+
The script requires [Git for Windows](https://git-for-windows.github.io).
10+
You can download the tool set from [Git for Windows Releases at Github](https://github.com/git-for-windows/git/releases).
11+
You must also install the [Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager#readme),
12+
which is shipped with the Git for Windows installation.
813
.PARAMETER GitRepoUrl
914
URL of the git repository. e.g.
1015
- 'https://github.com/my-org/my-repo.git.git'
@@ -68,6 +73,19 @@
6873
the use and the consequences of the use of this freely available script.
6974
PowerShell is a product of Microsoft Corporation. ScriptRunner is a product of ScriptRunner Software GmbH.
7075
© ScriptRunner Software GmbH
76+
77+
.LINK
78+
Git for Windows
79+
https://github.com/git-for-windows/git#readme
80+
81+
.LINK
82+
Git for Windows Releases
83+
https://github.com/git-for-windows/git/releases
84+
85+
.LINK
86+
Git Credential Manager
87+
https://github.com/git-ecosystem/git-credential-manager#readme
88+
7189
.LINK
7290
Azure DevOps Services or Server - Use personal access tokens to authenticate
7391
https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate
@@ -84,6 +102,9 @@
84102
Bitbucket - Using Repository Access Tokens with the Git command line interface
85103
https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/
86104
105+
.LINK
106+
Sync Git repositories to ScriptRunner
107+
https://github.com/scriptrunner/ActionPacks/tree/master/ScriptRunner/Script%20Synchronization/GitSync#readme
87108
#>
88109

89110
[CmdletBinding(DefaultParameterSetName='Default')]

ScriptRunner/Script Synchronization/GitSync/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
You can use the [Invoke-GitSparseCheckout.ps1](./Invoke-GitSparseCheckout.ps1) script to check out a branch of a Git repository to the ScriptRunner Library or pull updates to a local repository.
44

5-
The script requires [Git for Windows](https://git-for-windows.github.io). You can download this tool from [Git for Windows Releases at Github](https://github.com/git-for-windows/git/releases).
5+
The script requires [Git for Windows](https://git-for-windows.github.io). You can download the tool set from [Git for Windows Releases at Github](https://github.com/git-for-windows/git/releases). In order to ensure that the script works without errors, you must also install the [Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager#readme), which is shipped with **Git for Windows** installation.
66

77
## Script Parameters
88

@@ -103,9 +103,11 @@ The script requires [Git for Windows](https://git-for-windows.github.io). You ca
103103

104104
[Git for Windows](https://git-for-windows.github.io)
105105

106+
[Git for Windows at GitHub](https://github.com/git-for-windows/git#readme)
107+
106108
[Git for Windows Releases](https://github.com/git-for-windows/git/releases)
107109

108-
[Git Credential Manager for Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows)
110+
[Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager#readme)
109111

110112
[Azure DevOps Services or Server - Use personal access tokens to authenticate](https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate)
111113

0 commit comments

Comments
 (0)