Skip to content

Commit

Permalink
Update prefix format
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Jun 29, 2015
1 parent 8c0e165 commit d5cf03c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The options are:

Be sure to include any additional files you would like deployed like images, videos, font files, etc.

You can use relative paths which break out of the `root`. If you prefix the path with `/`, it will be interpreted as relative to the project directory, not the `root`.
You can use relative paths which break out of the `root`. If you prefix the path with `-/`, it will be interpreted as relative to the project directory, not the `root`.

##### `env`
The config file can contain configurations for multiple environments (production, staging, etc.). This specifies which is used. See the "YAML Config" section for more information.
Expand Down
4 changes: 2 additions & 2 deletions src/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ func expandFiles(root string, glob string) []string {
cases := strings.Split(glob, ",")

for _, pattern := range cases {
if strings.HasPrefix(pattern, "/") {
pattern = pattern[1:]
if strings.HasPrefix(pattern, "-/") {
pattern = pattern[2:]
} else {
pattern = filepath.Join(root, pattern)
}
Expand Down

0 comments on commit d5cf03c

Please sign in to comment.