Skip to content

Commit

Permalink
Don't skip files without a prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Nov 17, 2015
1 parent 67e4b14 commit 8a14774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/smartling/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func projectFileRemoteName(projectFilepath, prefix string) string {
remoteFile = fmt.Sprintf("%s/%s/%s", prefix, projectFileHash(projectFilepath), projectFilepath)
}

return path.Clean(remoteFile)
return path.Clean("/" + remoteFile)
}

func pushProjectFile(projectFilepath, prefix string) string {
Expand All @@ -278,7 +278,7 @@ func pushProjectFileIfNotExists(projectFilepath, prefix string) (string, bool) {
remoteFiles := getRemoteFileList()
remoteFileName := projectFileRemoteName(projectFilepath, prefix)

if remoteFiles.contains(remoteFileName) {
if prefix != "" && remoteFiles.contains(remoteFileName) {
return remoteFileName, false
}

Expand Down

0 comments on commit 8a14774

Please sign in to comment.