mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 08:25:01 +00:00
fixed bug related to #163
This commit is contained in:
@@ -134,9 +134,9 @@ func run(path string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the repository root directory
|
// get the repository root directory
|
||||||
dir := filepath.Base(filepath.Dir(path))
|
dir := filepath.Dir(path)
|
||||||
code := repo.Repo{
|
code := repo.Repo{
|
||||||
Name: dir,
|
Name: filepath.Base(dir),
|
||||||
Branch: "HEAD", // should we do this?
|
Branch: "HEAD", // should we do this?
|
||||||
Path: dir,
|
Path: dir,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user