Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
tools
tabacco
Commits
a277f63f
Commit
a277f63f
authored
Jun 15, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to limit generated atom names to the / directory
This is necessary in consequence of issue
#2
.
parent
6e1b5211
Pipeline
#3444
passed with stages
in 2 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
handler_pipe.go
handler_pipe.go
+2
-1
No files found.
handler_pipe.go
View file @
a277f63f
...
...
@@ -3,6 +3,7 @@ package tabacco
import
(
"context"
"errors"
"fmt"
"io"
"os"
"path/filepath"
...
...
@@ -126,7 +127,7 @@ func expandVars(s string, backup Backup, ds Dataset, atom Atom) string {
func
makeSingleAtomDataset
(
ds
Dataset
,
atom
Atom
)
Dataset
{
return
Dataset
{
Name
:
f
ilepath
.
Join
(
ds
.
Name
,
atom
.
Name
),
Name
:
f
mt
.
Sprintf
(
"/%s.%s"
,
ds
.
Name
,
atom
.
Name
),
Handler
:
ds
.
Handler
,
Atoms
:
[]
Atom
{
atom
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment