Compare commits

..

No commits in common. "v4-sha256" and "main" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View file

@ -42,7 +42,7 @@ export interface IGitCommandManager {
): Promise<void> ): Promise<void>
getDefaultBranch(repositoryUrl: string): Promise<string> getDefaultBranch(repositoryUrl: string): Promise<string>
getWorkingDirectory(): string getWorkingDirectory(): string
init(options?: { objectFormat?: string }): Promise<void> init(): Promise<void>
isDetached(): Promise<boolean> isDetached(): Promise<boolean>
lfsFetch(ref: string): Promise<void> lfsFetch(ref: string): Promise<void>
lfsInstall(): Promise<void> lfsInstall(): Promise<void>
@ -327,12 +327,8 @@ class GitCommandManager {
return this.workingDirectory return this.workingDirectory
} }
async init(options?: { objectFormat?: string }): Promise<void> { async init(): Promise<void> {
await this.execGit([ await this.execGit(['init', this.workingDirectory])
'init',
...(options?.objectFormat ? ["--object-format", options.objectFormat] : []),
this.workingDirectory
])
} }
async isDetached(): Promise<boolean> { async isDetached(): Promise<boolean> {

View file

@ -118,9 +118,4 @@ export interface IGitSourceSettings {
* User override on the GitHub Server/Host URL that hosts the repository to be cloned * User override on the GitHub Server/Host URL that hosts the repository to be cloned
*/ */
githubServerUrl: string | undefined githubServerUrl: string | undefined
/**
* Object format used for the repo, if it is not default
*/
objectFormat: string | undefined
} }