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 11:29:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Philip Kaludercic wrote:

>> Let's try the clone thing ...
>>
>>   $ git clone https://dataswamp.org/~incal/wrap-search.git
>>   Cloning into 'wrap-search'...
>>   fatal: repository 'https://dataswamp.org/~incal/wrap-search.git/' not found
>>
>> :(
>
> I forgot about this, but apparently you need to activate
> a git hook to make HTTP cloning work [...] you have to run
> these commands in your repository:
>
>   $ git --bare update-server-info
>   $ mv hooks/post-update.sample hooks/post-update

Indeed, it works now! Unbelievable it has to be that
complicated ...

But, when I clone I get the whole path

  wrap-search/public_html/emacs-init/wrap-search.el

Maybe that can be simplified?

#! /bin/zsh
#
# this file:
#   https://dataswamp.org/~incal/conf/.zsh/git
#
# at the server:
#   $ cd public_html
#   $ git init --bare wrap-search.git
#   $ cd wrap-search.git
#   $ git --bare update-server-info
#   $ mv hooks/post-update.sample hooks/post-update

git-init () {
    local name=wrap-search
    local server=dataswamp.org
    local repo=/home/incal/public_html/${name}.git

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

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

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




reply via email to

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