I'm using oh-my-zsh
➜ ~ brew -h
fatal: Invalid gitfile format: .git
fatal: Invalid gitfile format: .git
➜ ~ brew update
fatal: Invalid gitfile format: .git
fatal: Invalid gitfile format: .git
How to fix this problem?
Do you have a .git file under ~, which happens to be empty?
In my case, I cannot do git command under, say my/path,. I found an empty file in my/path, I deleted that file and everything works now.
You can remove the already available .git file from that folder using terminal in case of debian based systems .
sudo rm directoryname/.git/
Related
I have a subfolder with a lot of subfolders in it. Each subfolder has an settings.ini file in it. Every once in a while a new subfodler with a Ini-File and a lot of other files and subirectories are added, i want to automatically add and commit it via jenkins, but only the folder and the ini.
C:/Program Files (x86)
-horst
--kevin
---settings.ini
--georg
---settings.ini
--heinz
---settings.ini
--herbert
---settings.ini
...
I tried:
svn.exe --quiet --password %SVNPW% --username "%SVNUSER%" add --depth infinity --parents "C:/Program Files (x86)/horst/*/settings.ini"
But this is not working, I get the message:
svn: E720123: Can't make directory 'C:/Program Files (x86)/horst/*'
Is there another solution, what am I doing wrong
regard Nils
This does the trick
cd "C:/Program Files (x86)/horst"
dir /B /S settings.ini > file_list.txt
%SVN% --quiet --password %SVNPW% --username "%SVNUSER%" add --depth infinity --parents --targets file_list.txt
I created a list of targets I want to add and let SVN crawl it.
Nils
I wanted to install pgAudit on my CentOS 6 32-bit, I already installed PostgreSQL 10 + pgAdmin4 from PostgreSQL Linux run installer that I downloaded from DBEnterprise
I followed the guide from here, here are the steps I followed :
git clone https://github.com/postgres/postgres.git
go into the folder by cd postgres and then git checkout REL_10_STABLE
./configure after that make install -s
cd contrib
Clone the pgAudit extension by git clone https://github.com/pgaudit/pgaudit.git
cd pgaudit
git checkout REL_10_STABLE
make -s check
make install
I'm stuck at step 8. Here's the result :
[root#localhost pgaudit]# make -s check
============== creating temporary instance ==============
============== initializing database system ==============
pg_regress: initdb failed
Examine /root/postgres/contrib/pgaudit/log/initdb.log for the reason.
Command was: "initdb" -D "/root/postgres/contrib/pgaudit/./tmp_check/data" --no-clean --no-sync > "/root/postgres/contrib/pgaudit/log/initdb.log" 2>&1
make: *** [check] Error 2
I opened the initdb.log at /root/postgres/contrib/pgaudit/log/initdb.log like how it told me to, and it says :
Running in no-clean mode. Mistakes will not be cleaned up.
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
So I tried it again after I logged in as postgres, here's the result :
bash-4.1$ make -s check
make[3]: stat: ../../src/include/utils/errcodes.h: Permission denied
/bin/sh: line 0: cd: utils/: Not a directory
make[3]: *** [../../src/include/utils/errcodes.h] Error 1
make[2]: *** [submake-errcodes] Error 2
make[1]: *** [submake-libpgport] Error 2
make: *** [submake] Error 2
I'm really new to both Linux and PostgreSQL, so I don't know why it failed and what is the solution for this. Thanks in advance!
Look like your db user not having a login shell.
You can try with:
sudo -u postgres psql template
Or:
sudo -u postgres bash
I want to install fastdht. So I download source code from github
https://github.com/happyfish100/fastdht
I follow the INSTALL file, run make.sh first.
./make.sh
However, it shows the following error messages.
[root#localhost fastdht]# sh make.sh
make.sh: line 142: warning: here-document at line 2 delimited by end-of-file
(wanted `EOF')
make.sh: line 2: ./a.out: No such file or directory
nm: '/usr/lib/libc_r.so': No such file
nm: '/lib64/libc_r.so': No such file
nm: '/usr/lib64/libc_r.so': No such file
[root#localhost fastdht]#
What's the matter?
Maybe there are some format errors in make.sh.
I create a new file a.sh and type the contents of make.sh in it. When I run a.sh it works!
I got this error when I tried to clone a repo in bit bucket.
"(gnome-ssh-askpass:11720): Gtk-WARNING **: cannot open display:"
The command used is:
git clone https://user#bitbucket.org/repo.git scripts/
Run below command and then try again:
unset SSH_ASKPASS
i am trying to deploy rails app through chef code. recipe contains code
deploy_revision "testapp" do
repo "REPO_URL"
ssh_wrapper "/home/ubuntu/.ssh/chef_ssh_deploy_wrapper.sh"
environment({
"RAILS_ENV" => "staging"
})
deploy_to "/home/ubuntu/testapp"
branch "master"
user "ubuntu"
group "ubuntu"
scm_provider Chef::Provider::Git
end
and sshwrapper file contains
exec ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no github.com -i "/home/ubuntu/.ssh/id_rsa" "$#"
when i ran bootstrap
im getting error as follows
STDERR: Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of known hosts.
192.168.1.32 Permission denied (publickey).
192.168.1.32 fatal: Could not read from remote repository.
192.168.1.32 Please make sure you have the correct access rights
192.168.1.32 and the repository exists.
192.168.1.32 ---- End output of git ls-remote "REPO_URL" master* ----
so , unable to figure it out the reason. Any help would be appreciated.