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