emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrap-search 3.3.5


From: Emanuel Berg
Subject: Re: wrap-search 3.3.5
Date: Wed, 31 Aug 2022 13:04:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Gregory Heytings wrote:

>> But, when I clone I get the whole path
>>
>>   wrap-search/public_html/emacs-init/wrap-search.el
>
> That's because of the way you created your git repository,
> at the root of your home directory:
>
>> cd
>> rm -f -r .git
>> git init
>
> What you could do instead is something like:
>
> git init ~/git/wrap-search
> cd ~/git/wrap-search
> cp ~/public_html/emacs-init/wrap-search.el .
> git add wrap-search.el

Unbelievable it should be this involved for this
one-file task!

But OK, at the server

get-setup () {
    local repo=wrap-search.git

    cd ~/public_html
    rm -f -r ${repo}/*
    rmdir ${repo}

    git init --bare ${repo}

    cd ${repo}
    git --bare update-server-info
    mv hooks/post-update.sample hooks/post-update

    cd
}

Then at the desktop

git-init () {
    local name=wrap-search
    local server=dataswamp.org
    local repo=public_html/${name}.git
    local dir=~/git/${name}
    local elisp_file=${name}.el

    cd
    rm -f -r git
    git init ${dir}
    cd ${dir}
    cp ~/public_html/emacs-init/${elisp_file} .
    git add ${elisp_file}
    git commit -m "Initial commit"
    git remote add origin ${USER}@${server}:${repo}
    git push --set-upstream origin master
    cd
}

Then clone wherever ...

git-clone () {
    cd src
    git clone https://dataswamp.org/~incal/wrap-search.git
}

So what's next, if and when I make an edit to the file?
Just push? Or what's the command?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]