Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]po komendzie composer update foldery z .gitignore mają status "added" (lub "modified") w phpstorm
porzeczki
post
Post #1





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


(phpstorm)(windows)(projekt

1. klonuję projekt
2. git status pokazuje projekt: nothing to commit
3. robię composer update
4. git status pokazuje foldery z gitignore na liście do commita
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 8)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Mozesz pokazac ten gitignore oraz liste plikow ktore pokazuje ze zostaly zmienione/dodane?
Go to the top of the page
+Quote Post
porzeczki
post
Post #3





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


(IMG:http://i66.tinypic.com/2ufq1jm.jpg)

nie pomogły poniższe:

Kod
    git config --global core.autocrlf true


    git config --global core.filemode false
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




nie
/vendor

a
vendor/

analogicznie reszta

choc to pewnie nie ma znaczenia.

A mozesz pokazac wynik normalnego
git status
a nie sieczki z phpstorm? Bo teraz wyglada, jakby vendor juz byl wczesniej dodany do gita
Go to the top of the page
+Quote Post
porzeczki
post
Post #5





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Nie, to nie to, nic to nie dało. Z resztą phpstorm podpowiada mi dokładny zapis ścieżek, ale zrobiłem jak napisałeś i po nowym klonie to samo. To musi mieć coś ze zmianą kodowania plików windows/linux, line ending, ale komendy globalne które wkleiłem wyżej też nie pomogły.
Go to the top of the page
+Quote Post
nospor
post
Post #6





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Prosze pokaz normalny
git status
z konsoli. Bo teraz z tego okna pgpstorm wynika jakby VENDOR juz lezal w repozytorium wczesniej
Go to the top of the page
+Quote Post
porzeczki
post
Post #7





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


----------------------------
git status pokazuje to samo co phpstorm

przed composer update "nothing to commit"
po composer update:
Kod
       .....
        modified:   vendor/twig/twig/src/Template.php
        modified:   vendor/twig/twig/src/TemplateWrapper.php
        modified:   vendor/twig/twig/src/Test/IntegrationTestCase.php
        modified:   vendor/twig/twig/src/Test/NodeTestCase.php
        modified:   vendor/twig/twig/src/Token.php
        modified:   vendor/twig/twig/src/TokenParser/AbstractTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/AutoEscapeTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/BlockTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/DoTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/EmbedTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/ExtendsTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/FilterTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/FlushTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/ForTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/FromTokenParser.php
        modified:   vendor/twig/twig/src/TokenParser/IfTok
.....


Ten post edytował porzeczki 16.03.2018, 17:46:33
Go to the top of the page
+Quote Post
nospor
post
Post #8





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




Czyli jest jak mowilem: pliki z VENDOR juz byly w repo przed UPDATE temu teraz ci pokazuje jako MODIFIED mimo ze sa gitignore. Jesli plik jest juz w repo to gitignore guzik moze... wpierw musisz je usunac z repo a dopiero potem ci gitignore zapobiegnie ponownemu dodaniu
Go to the top of the page
+Quote Post
porzeczki
post
Post #9





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


hmm, dziękuję.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 12:41