Skip to content

gitdot-cloned repo config lacks remote."origin".fetch #10

@smammy

Description

@smammy

For reasons I haven't investigated, my ~/.dotfiles/config files are missing a fetch option for the "origin" remote. Here's the config for my clone of gitdot itself:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = https://github.com/smammy/gitdot.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
        remote = origin
        merge = refs/heads/main

And here's the same file for a dotfiles repo cloned by gitdot:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = true
    excludesFile = .config/gitdot/exclude
[remote "origin"]
    url = https://github.com/smammy/dotfiles.git
[status]
    showUntrackedFiles = no
[branch "main"]
    remote = origin
    merge = refs/heads/main

The effect of this is that git doesn't create remote-tracking branches, so it can't show me anything in git branch -r and commits aren't labeled with remote refs in git log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions