Flare adding gitignore to .gitignore file

This forum is for all Flare issues related to using Source Control.

Flare adding gitignore to .gitignore file

Postby Carlsen on Mon Apr 11, 2016 4:04 pm

Hi Everyone,

Has anyone noticed this behavior in Flare when biding to GitHub? It defaults to adding the .gitignore file to the .gitignore file every time you do a push. Even if you open the .gitignore file and remove that line, Flare adds it back at the next push.

Does anyone know how to make Flare stop adding this line to the .gitignore? I work on a team that has multiple writers, and I'd like the .gitignore file to be part of my GitHub repository so that they all have the same file with all the same settings. But Flare won't let that happen, so I'm forced to use an outside GitHub client so that I can have this file as part of my repo.

For reference, these are the default Flare .gitignore settings:
Code: Select all
Output
Analyzer
FileSync
Project/Users
.gitignore
**/Thumbs.db


It's ridiculous default behavior like this that makes me really hate Flare sometimes. Any help would be appreciated.

Thanks,
Josh
Carlsen
Propeller Head
 
Posts: 40
Joined: Fri Apr 08, 2011 2:30 pm

Re: Flare adding gitignore to .gitignore file

Postby Carlsen on Wed Apr 13, 2016 8:16 pm

No one?

Maybe no one reading the forum uses GitHub. But the fact that Flare forces the .gitignore file to be in the .gitignore file is a huge problem. Browse any random repository on GitHub, and the odds are good the .gitignore file will be present in the repository.

For Flare users, this is an issue if you're on a team with more than one writer and you have a complex enough setup that you need more than the default Flare .gitignore settings. In my case I'm importing files from another project for master pages, page layouts, etc. so we can make sure all our outputs across all projects look the same. I need to ignore those imported files in any particular project so they are not added to source control for every project. It's easy enough to add these files and folders to the .gitignore, but I can't share them with the team in the repository itself because Flare forces the .gitignore to ignore itself. So I have to pass around the .gitignore file manually to every team member instead of just letting them grab it from the repository like every other file. Insane, but there it is.

I'll file a bug against Flare for this. Someone wasn't thinking very far ahead when they implemented this "feature".
Carlsen
Propeller Head
 
Posts: 40
Joined: Fri Apr 08, 2011 2:30 pm

Re: Flare adding gitignore to .gitignore file

Postby dcisneros on Fri Apr 22, 2016 10:13 am

Our team is using Git!

Our situation is similar in some respects and different in others. We ran into the issue where we had to manually add the .gitignore file and add those folders you mentioned to the list ourselves because one day, Flare decided to stop ignoring those files and wouldn't let anyone push their changes to the repository. After manually setting that up, we haven't run into anymore issues with it...for now.

I mentioned our issue to a support rep when I went to MadWorld, and I think they plan to create a KB article that covers .gitignore.

Maybe keep an eye out for that?
dcisneros
Propeller Head
 
Posts: 11
Joined: Tue Aug 12, 2014 12:25 pm

Re: Flare adding gitignore to .gitignore file

Postby ajolson on Fri Dec 16, 2016 9:30 am

I agree this is a poor feature design, and filing a bug with Madcap is a good choice.

I've read many bad experiences of Madcap's Git integration, so decided to skip Madcap entirely when it comes to source control. We use the Github windows app for push/pull to the git repo instead. Then we don't have Madcap messing up the .gitignore files.
ajolson
Jr. Propeller Head
 
Posts: 3
Joined: Tue Sep 20, 2016 10:43 am

Re: Flare adding gitignore to .gitignore file

Postby zeddee on Thu Apr 27, 2017 6:59 pm

another .gitignore issue i've run into is that flare insists that the .gitignore must have a specific format, on top of what git expects it to be.
For my case, i've changed it to such:

Code: Select all
#################################################################################
# Placing a # in front of any of the items listed below (e.g., #analyzer) will  #
# allow these items to be pushed to your Git repository. Keep in mind the more  #
# files you push to your repository, the more your performance may be affected. #
#################################################################################

/Output
/Analyzer
/FileSync
/Project/Users
!.gitignore
.svn
**/Thumbs.db

#################################################################################
# Add items to be ignored below                                                 #
#################################################################################

/Project/Targets


only to have flare insert its gitignore statements _again_ on build:
Code: Select all
#################################################################################
# Placing a # in front of any of the items listed below (e.g., #analyzer) will  #
# allow these items to be pushed to your Git repository. Keep in mind the more  #
# files you push to your repository, the more your performance may be affected. #
#################################################################################

/Output
/Analyzer
/FileSync
/Project/Users
.gitignore
.svn
**/Thumbs.db

#################################################################################
# Add items to be ignored below                                                 #
#################################################################################

!.gitignore
/Project/Targets


and again:
Code: Select all
#################################################################################
# Placing a # in front of any of the items listed below (e.g., #analyzer) will  #
# allow these items to be pushed to your Git repository. Keep in mind the more  #
# files you push to your repository, the more your performance may be affected. #
#################################################################################

/Output
/Analyzer
/FileSync
/Project/Users
.gitignore
.svn
**/Thumbs.db

#################################################################################
# Add items to be ignored below                                                 #
#################################################################################

#################################################################################
# Placing a # in front of any of the items listed below (e.g., #analyzer) will  #
# allow these items to be pushed to your Git repository. Keep in mind the more  #
# files you push to your repository, the more your performance may be affected. #
#################################################################################

/Output
/Analyzer
/FileSync
/Project/Users
.gitignore
.svn
**/Thumbs.db

#################################################################################
# Add items to be ignored below                                                 #
#################################################################################

!.gitignore
/Project/Targets



The thing is that I cannot reliably reproduce this -- it seems to be triggered by the way the .gitignore file is formatted (control chars and whatnot perhaps). Anyone else encounter something like this?
zeddee
Jr. Propeller Head
 
Posts: 2
Joined: Mon Apr 10, 2017 2:53 am

Re: Flare adding gitignore to .gitignore file

Postby oleksandr_kokoshyn on Tue Mar 05, 2019 2:17 am

Hi,

Has anyone found a way to prevent Flare from changing the .gitignore file?
oleksandr_kokoshyn
Propeller Head
 
Posts: 27
Joined: Mon Sep 03, 2018 4:19 am

Re: Flare adding gitignore to .gitignore file

Postby BrianAtInTouchHealth on Wed Jul 01, 2020 11:54 am

dcisneros wrote:We ran into the issue where we had to manually add the .gitignore file and add those folders you mentioned to the list ourselves because one day, Flare decided to stop ignoring those files and wouldn't let anyone push their changes to the repository. After manually setting that up, we haven't run into anymore issues with it...for now.

This works a while for me but for some some unknown reason the .gitignore file keeps getting out of sync with the repository. So, when that happens to me I close Flare, open Git Bash, navigate to the folder, and then enter the following:
Code: Select all
git restore *.gitignore


oleksandr_kokoshyn wrote:Has anyone found a way to prevent Flare from changing the .gitignore file?

Same question.

Brian
Flare :flare: + Analyzer :analyzer: 2020, Capture :capture: 7.0, Mimic :mimic: 8.1
BrianAtInTouchHealth
Propeller Head
 
Posts: 34
Joined: Thu Dec 27, 2018 10:35 am
Location: Goleta (Santa Barbara County), CA

Re: Flare adding gitignore to .gitignore file

Postby doloremipsum on Wed Jul 01, 2020 2:20 pm

I haven't stopped Flare from changing the gitignore entirely, but you can definitely push the file to your repository. Just add a # in front of the .gitignore line.
neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit - sed saepe cum dolor apud multos callidos mutuetur, reduci potest.
doloremipsum
Sr. Propeller Head
 
Posts: 133
Joined: Mon Aug 26, 2019 2:11 pm

Re: Flare adding gitignore to .gitignore file

Postby BrianAtInTouchHealth on Fri Sep 04, 2020 3:17 pm

BrianAtInTouchHealth wrote:This works a while for me but for some some unknown reason the .gitignore file keeps getting out of sync with the repository. So, when that happens to me I close Flare, open Git Bash, navigate to the folder, and then enter the following:
Code: Select all
git restore *.gitignore

Since upgrading to Flare 2020 I still have the issue but I don't have the syncing issue and I don't have to use Git Bash.

Brian
Flare :flare: + Analyzer :analyzer: 2020, Capture :capture: 7.0, Mimic :mimic: 8.1
BrianAtInTouchHealth
Propeller Head
 
Posts: 34
Joined: Thu Dec 27, 2018 10:35 am
Location: Goleta (Santa Barbara County), CA

Re: Flare adding gitignore to .gitignore file

Postby oceanclub on Thu Sep 10, 2020 11:04 am

Has Flare 2020 changed the way it treats .gitignore? I noticed that this file was being _constantly_ updated in one of our projects, and I'm thinking it is because one colleague has not updated from Flare 2019 and it treats .gitignore differently. For example, if I have the following .gitignore:
Code: Select all
#################################################################################
# Placing a # in front of any of the items listed below (e.g., #analyzer) will  #
# allow these items to be pushed to your Git repository. Keep in mind the more  #
# files you push to your repository, the more your performance may be affected. #
#################################################################################

/Output
/Analyzer
/FileSync
/Project/Users
/.svn
**/Thumbs.db
/.gitignore

#################################################################################
# Add items to be ignored below                                                 #
#################################################################################


And then open the project in Flare 2020, I get:
Code: Select all
#################################################################################
# Placing a # in front of any of the items listed below (e.g., #analyzer) will  #
# allow these items to be pushed to your Git repository. Keep in mind the more  #
# files you push to your repository, the more your performance may be affected. #
#################################################################################

/Output
/Analyzer
/FileSync
/Project/Users
/.svn
**/Thumbs.db

#################################################################################
# Add items to be ignored below                                                 #
#################################################################################

/.gitignore



That is, Flare 2020 forces git to ignore .gitignore.

However, that does not seem to be git standard practise. But either way Flare suddenly seems to be imposing a policy here?

P.
User avatar
oceanclub
Sr. Propeller Head
 
Posts: 226
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Re: Flare adding gitignore to .gitignore file

Postby doloremipsum on Thu Sep 10, 2020 3:16 pm

Flare has always done that - it's a little unclear from how the text is phrased, but all of the files/directories in both lists are being ignored (some, like the Analyzer, for very good reason). The difference seems to be whether the .gitignore is placed in the lower panel or in the middle one, but that won't be a practical difference.

As I noted above, you can stop Flare from blocking the gitignore by putting a # at the start of that line. Maybe at the start of both lines in this case, not sure.
neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit - sed saepe cum dolor apud multos callidos mutuetur, reduci potest.
doloremipsum
Sr. Propeller Head
 
Posts: 133
Joined: Mon Aug 26, 2019 2:11 pm


Return to Source Control

Who is online

Users browsing this forum: No registered users and 3 guests

cron