repository

package
v1.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package repository contains logic for cloning remote repositories

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneAndSwitchToCommit

func CloneAndSwitchToCommit(ctx context.Context, org, repositoryName, path, sha string) error

CloneAndSwitchToCommit clones repository on given path and switches to given commit SHA

func CloneUsingBranchOrTag

func CloneUsingBranchOrTag(ctx context.Context, org, repositoryName, path, branchOrTag string) error

CloneUsingBranchOrTag clones repository on given path in given branch or tag

func CreateTempDir

func CreateTempDir(repo string) (tempDir string, cleanup func(), err error)

CreateTempDir creates temp dir and returns cleanup function that cleans up the dir

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL