Skip to content

Commit

Permalink
ignore .git files whily pushing content
Browse files Browse the repository at this point in the history
  • Loading branch information
iximiuz committed Jul 10, 2024
1 parent f29bc2e commit 851d86c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/content/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ func listFiles(dir string) ([]string, error) {

var result []string
for _, file := range files {
if strings.HasPrefix(file.Name(), ".git") {
continue
}

if file.IsDir() {
children, err := listFiles(filepath.Join(dir, file.Name()))
if err != nil {
Expand Down

0 comments on commit 851d86c

Please sign in to comment.