Skip to content

greyout button - Automatically initialize Git repositories with a README file #654

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

Closed
ahmedosama80 opened this issue Feb 19, 2017 · 10 comments
Assignees
Labels

Comments

@ahmedosama80
Copy link

Dears,
the button which used to enable/disable "Automatically initialize Git repositories with a README file (à la Github)" is disabled and greyout !!
any tips about this issue??

Redmine version 3.2.1.stable
redmine_git_hosting version 1.2.0
gitolite3 v3.6.5-4-g6ed0156-dt on git 2.6.1

thanks all

@n-rodriguez n-rodriguez self-assigned this Feb 19, 2017
@sdfg2
Copy link

sdfg2 commented Feb 24, 2017

Have you made sure the hooks are installed?

@baby-gnu
Copy link

baby-gnu commented Mar 2, 2017

the button which used to enable/disable "Automatically initialize Git repositories with a README file (à la Github)" is disabled and greyout !!
any tips about this issue??

I think this is because Automatically initialize Git repositories for new projects? is set to No.

I think that Automatically initialize Git repositories with a README file (à la Github) could be make independant.

Regards.

@ahmedosama80
Copy link
Author

I think this is because Automatically initialize Git repositories for new projects? is set to No.

I think that Automatically initialize Git repositories with a README file (à la Github) could be make independant.

I guess they already independant

@baby-gnu
Copy link

baby-gnu commented Mar 3, 2017

No they are not

  %label= l(:label_init_repositories_on_create).html_safe
  = bootstrap_switch_tag do
  = hidden_field_tag 'settings[init_repositories_on_create]', 'false'
  = check_box_tag 'settings[init_repositories_on_create]', init_repositories_on_create, init_repositories_on_create, {:disabled => !all_projects_use_git}

You can notice the

{:disabled => !all_projects_use_git}

Regards.

@n-rodriguez
Copy link
Contributor

I think that Automatically initialize Git repositories with a README file (à la Github) could be make independant.

How could I automatically init a repo if it's not automatically created? FYI, this settings only apply on Project creation.

@baby-gnu
Copy link

How could I automatically init a repo if it's not automatically created? FYI, this settings only apply on Project creation

We could automatically initialise a repository on its creation, the repository creation could be done automatically at project creation or manually as requested by the user.

Otherwise we will be unable to initialise the README of sub-repositories.

Regards.

@n-rodriguez
Copy link
Contributor

We could automatically initialise a repository on its creation, the repository creation could be done automatically at project creation or manually as requested by the user.

Otherwise we will be unable to initialise the README of sub-repositories.

This is already the case or I miss something...

@baby-gnu
Copy link

This is already the case or I miss something...

I don't know because we do not want to automatically initialize Git repositories for new projects since some projects are just a grouping of several sub-project to centrally manage issues.

So, when Automatically initialize Git repositories for new projects? is set to No, I can't set Automatically initialize Git repositories with a README file (à la Github) to Yes.

This is the main issue for us.

Regards.

@baby-gnu
Copy link

baby-gnu commented Apr 1, 2017

OK, here is the recap:

When Automatically initialize Git repositories for new projects? is set to No then Automatically initialize Git repositories with a README file (à la Github) is unselectable:

automatic-readme-initialisation-greyout

in which case, the Initialize this repository with a README is not automatically selected:

readme-initialisation-not-pre-selected

I think Automatically initialize Git repositories with a README file (à la Github) could be independent from Automatically initialize Git repositories for new projects?, this way a repository is not automatically created when a new project is created but the checkbox is automatically pre-selected:

readme-initialisation-pre-selected

Regards.

@PowerKiKi
Copy link
Collaborator

As discussed in #732 (comment), issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker.

If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information.

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

No branches or pull requests

5 participants