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>
getDefaultBranch(repositoryUrl: string): Promise<string>
getWorkingDirectory(): string
init(options?: { objectFormat?: string }): Promise<void>
init(): Promise<void>
isDetached(): Promise<boolean>
lfsFetch(ref: string): Promise<void>
lfsInstall(): Promise<void>
@ -327,12 +327,8 @@ class GitCommandManager {
return this.workingDirectory
}
async init(options?: { objectFormat?: string }): Promise<void> {
await this.execGit([
'init',
...(options?.objectFormat ? ["--object-format", options.objectFormat] : []),
this.workingDirectory
])
async init(): Promise<void> {
await this.execGit(['init', this.workingDirectory])
}
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
*/
githubServerUrl: string | undefined
/**
* Object format used for the repo, if it is not default
*/
objectFormat: string | undefined
}