Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

=== ERROR: DIR is not a repository === #12

Closed
haider-pw opened this issue May 31, 2017 · 3 comments
Closed

=== ERROR: DIR is not a repository === #12

haider-pw opened this issue May 31, 2017 · 3 comments

Comments

@haider-pw
Copy link

Hi, i am trying to set this git-deploy with shared hosting. a2hosting.

git is enabled and exec also enabled.

it does finds the directory.

here is how i did setup my directory in config.

define("DIR", "/home/{username}/repositories/pakistanihaider.me");

"{username}" is my account username

i created the related directory as well. and i did checked it finds the directory.

But git pull command is not being executed..??

What am i doing wrong here??

@eugenefurs
Copy link

just add the / (slash) in the end of the path and it'll work. I had the same issue and fixed it with this.

define("DIR", "/home/{username}/repositories/pakistanihaider.me/");

@Luc45
Copy link

Luc45 commented Jan 29, 2019

Looking at the code that generates this error messages, there is this:

if (file_exists(DIR . ".git") && is_dir(DIR)) {
    // Do something
} else {
    // === ERROR: DIR is not a repository ===
}

So, make sure there's a .git file in the destination directory.

@nitrokevin
Copy link

I have a .git folder inside my DIR but it is still saying it isn't a repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants