Skip to content

Commit

Permalink
write_delim_git() stages files when local path is the root of the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Dec 27, 2017
1 parent 36e3d63 commit e0f5a63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/write_delim_git.r
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ setMethod(
)

# stage the file
filename.local <- paste(connection@LocalPath, file, sep = "/")
add(connection@Repository, filename.local)
if (connection@LocalPath == ".") {
filename.local <- file
} else {
filename.local <- paste(connection@LocalPath, file, sep = "/")
}
add(repo = connection@Repository, path = filename.local)

return(hashfile(filename.full))
}
Expand Down

0 comments on commit e0f5a63

Please sign in to comment.